예제 #1
0
    // 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();
        }
    }
예제 #2
0
 public void pause()
 {
     ship.pause();
 }