Ejemplo n.º 1
0
    public void MonsterCaughtPlayer()
    {
        if (GameManager.Instance.GameInProgress)
        {
            //foreach (CameraMove cM in cameraMoves)
            //    cM.speed = 0;

            monsterAnimator.Play("Roar");

            // end game in defeat for player
            Debug.Log("The monster caught the player!");
            GameManager.Instance.GameEnding(Time.time);//, false, "Oh no! The monster caught you!");

            // play animations
            playerStepper.Die();
            AS_back.mute    = true;
            AS_monster.loop = true;
        }
    }