Exemplo n.º 1
0
 public virtual void Restart()
 {
     player.Restart();
     pm.Restart();
     deathManager.SetInActive();
     SetInActive();
 }
Exemplo n.º 2
0
 // Start is called before the first frame update
 private void Start()
 {
     _lastx2 = 0f;
     _lastX  = 0f;
     _height = _cam.ScreenToWorldPoint(new Vector3(x: Screen.width, y: Screen.height, 0))[1];
     _isDead = false;
     _pauseMenu.SetInActive();
     _deathManager.SetInActive();
     _isPause     = false;
     _isStartJump = Input.touchCount > 0;
 }