1234567891011121314151617181920212223242526272829303132333435 |
- using UnityEngine;
- using System.Collections;
- public class StationAI : AI
- {
- override protected void Start ()
- {
- base.Start ();
- SetPlayer (new Player ());
- }
- protected Station owner
- {
- get{
- return _owner as Station;
- }
- }
- void FixedUpdate ()
- {
- if(!CanSendMessage())
- {
- return;
- }
- if(battleController.isGameOver || owner.IsDead())
- {
- return;
- }
-
- CheckDead();
- }
- }
|