예제 #1
0
 override protected void Awake()
 {
     base.Awake();
     objective              = gameObject.AddComponent <SeekAndDestroyObjective>();
     objective.ship         = this;
     objective.opponentShip = FindObjectOfType(typeof(PlayerShip)) as Ship;
 }
예제 #2
0
 protected override void Awake()
 {
     base.Awake();
     objective = gameObject.AddComponent<SeekAndDestroyObjective>();
     objective.ship = this;
     objective.opponentShip = FindObjectOfType(typeof(PlayerShip)) as Ship;
 }