Ejemplo n.º 1
0
    void RpcOnDie()
    {
        if (ActiveHero != null)
        {
            ActiveHero.m_animator.SetTrigger("Die");
        }

        if (isLocalPlayer)
        {
            MyInput.Lock();
            GameStats._EndGameMenu.Enable();
        }
    }