Exemplo n.º 1
0
    void attak()
    {
        if (ph.curthealth > 0)
        {
            ph.gethurt(atkamount);

            // player.SendMessage("TakeDamage", atkamount);
            timer = 0f;
        }
    }
Exemplo n.º 2
0
    void attak()
    {
        // weapon0.SetActive(false);
        weapon1.SetActive(true);
        // Invoke("finshoot", 2f);
        shotaudio.Play();
        if (ph.curthealth > 0)
        {
            ph.gethurt(atkamount);
        }

        player.SendMessage("TakeDamage", 30);
        timer = 0f;
    }