// spawn the given ship at the given location void spawnShip(Vector2 spawnPoint, GameObject ship) { GameObject obj = ship; obj.transform.position = spawnPoint; ShipIntf ctrl = obj.GetComponent <ShipIntf>(); if (GameObject.Find("GameLogic").GetComponent <Pause>().getPaused()) { ctrl.pause(); } }
public void pause() { ship.pause(); }