Beispiel #1
0
 public void FallToDeath()
 {
     health = 0;
     machete.DropMachete();
     gun.DropGun();
     BleedWhenDead();
     MakeRagDoll();
     slomoController.SlomoOn();
     alive = false;
     TriggerGameOver();
 }
Beispiel #2
0
 public void Continue()
 {
     DisablePauseUI();
     if (slomoController.isSlomoEnabled)
     {
         slomoController.SlomoOn();
     }
     else
     {
         Time.timeScale = 1;
     }
 }
Beispiel #3
0
    private void OnTriggerEnter2D(Collider2D other)
    {
        Player player = other.gameObject.GetComponent <Player>();

        if (!player)
        {
            return;
        }
        if (player)
        {
            slomoController.SlomoOn();
        }
    }