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