Ejemplo n.º 1
0
    public void TauntCooldown()
    {
        PlayerActionController pAction = GameObject.Find("Player").GetComponent <PlayerActionController>();

        if (!tauntCD)
        {
            tauntCD = true;
            pAction.SetTauntCooldown(5f);
            // pAction.taun
            Debug.Log(" TRUE");
        }
        else
        {
            tauntCD = false;
            pAction.SetTauntCooldown(0f);
            // pAction.TauntCooldown = 0f;
            Debug.Log(" FALSe");
        }
    }