Esempio n. 1
0
 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;
 }
Esempio n. 2
0
 // Use this for initialization
 void Start()
 {
     health        = maxHealth;
     ctrlGameState = ctrlGame.GetComponent <CtrlGameState>();
 }