Beispiel #1
0
 public void PlayerDead()
 {
     heart--;
     GameRestartPanel.Show();
     ResetLevelObject();
     ResetPlayer();
 }
Beispiel #2
0
 /// <summary>
 /// Update is called every frame, if the MonoBehaviour is enabled.
 /// </summary>
 void Update()
 {
     if (Input.GetKey(KeyCode.Return) && gameStart == false)
     {
         gameStart = true;
         startPanel.SetActive(false);
         GameRestartPanel.Show();
         ResetLevelObject();
         ResetPlayer();
         // _playerController.SetGravity(true);
     }
 }
 // Start is called before the first frame update
 void Start()
 {
     instance = this;
     RefreshInfo();
 }