コード例 #1
0
 override protected void Awake()
 {
     base.Awake();
     objective              = gameObject.AddComponent <SeekAndDestroyObjective>();
     objective.ship         = this;
     objective.opponentShip = FindObjectOfType(typeof(PlayerShip)) as Ship;
 }
コード例 #2
0
ファイル: AiShip.cs プロジェクト: hypno2000/starcontrol
 protected override void Awake()
 {
     base.Awake();
     objective = gameObject.AddComponent<SeekAndDestroyObjective>();
     objective.ship = this;
     objective.opponentShip = FindObjectOfType(typeof(PlayerShip)) as Ship;
 }