Ejemplo n.º 1
0
    public IEnumerator Countdown_To_Player_Death()
    {
        yield return(new WaitForSeconds(time_In_Danger_Zone_Before_Player_Dies));

        //call the animator to make her cold
        player_Anim.SetTrigger("Dart Trap");
        local_Player_Manager.Kill_Player();
    }
Ejemplo n.º 2
0
 public void Fall_Through_Pit()
 {
     one.SetActive(false);
     two.SetActive(false);
     three.SetActive(false);
     four.SetActive(false);
     five.SetActive(false);
     six.SetActive(false);
     seven.SetActive(false);
     eight.SetActive(false);
     camera_Target.SetActive(false);
     local_NavMeshAgent.enabled = false;
     player_Collider.enabled    = false;
     local_Player_manager.Kill_Player();
     anim.SetTrigger("Pit Trap");
     //play particle effect to hide solas clipping through the ground here
 }
Ejemplo n.º 3
0
    IEnumerator KillPlayer(Player_Manager pm)
    {
        yield return(new WaitForSeconds(2));

        pm.Kill_Player();
    }