void attak() { if (ph.curthealth > 0) { ph.gethurt(atkamount); // player.SendMessage("TakeDamage", atkamount); timer = 0f; } }
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; }