コード例 #1
0
ファイル: CameraController.cs プロジェクト: DKLynch/SereniTee
 void Awake()
 {
     camTarget    = GameObject.FindGameObjectWithTag("CamTarget").transform;
     camTargetRb  = camTarget.GetComponent <Rigidbody>();
     cam          = this.GetComponent <Camera>();
     inputHandler = FindObjectOfType <InputHandler>();
     follow       = FindObjectsOfType <BallFollow>().First(b => b.name == "CamTarget");
 }
コード例 #2
0
 void GameOver()
 {
     BallFollow.Stop();
     SpawnController.StopSpawning();
     gameplayGUI.ShowGameOverMessage(true);
     currentState   = State.PostGame;
     Time.timeScale = 0f;
     Debug.Log("GameController: Game Over");
 }