public void EnemyBaseScoutingCompleat(GameObject Enemy, GameObject ShipThatFound) { foreach (GameObject Ships in AttackFleet) { Ships.GetComponent <ShipAI> ().Attack(Enemy); } ShipThatFound.GetComponent <MoveComponent> ().Movement(StarBases [0].transform.position + new Vector3(100, 0, 100)); ShipThatFound.GetComponent <ShipAI> ().DontReaction = true; }
public void NeedHelp(GameObject Enemy) { foreach (GameObject Ships in AttackFleet2) { Ships.GetComponent <ShipAI> ().Attack(Enemy); } foreach (GameObject Ships in AttackFleet3) { Ships.GetComponent <ShipAI> ().Attack(Enemy); } }