private void Update() { if (GameManager.Instance.state != GameState.GamePlay) { return; } if (Input.GetMouseButtonDown(0)) { if (spaceShip == SpaceShipMode.Orbit) { spaceShip = SpaceShipMode.Launch; CallDestroy(); } } }
private void Awake() { spaceShip = SpaceShipMode.Orbit; centerOrbit = GameObject.FindGameObjectWithTag("World").transform; }