private void Start() { GameObject.FindGameObjectWithTag("CtrlAudio").GetComponent <BGM>().stopTheMusic(); ctrlGameState = ctrlGame.GetComponent <CtrlGameState>(); cameraPlayer = GameObject.FindGameObjectWithTag("CameraPlayer"); videoPlayer = GetComponent <VideoPlayer>(); videoPlayer.loopPointReached += endGame; Cursor.visible = false; }
// Use this for initialization void Start() { health = maxHealth; ctrlGameState = ctrlGame.GetComponent <CtrlGameState>(); }