public void attack() { if (tTime > Time.time) { return; } kick.moveCollider(facing); kick.kick(); player.anim.SetBool("attack", true); tTime = Time.time + cooldown; }
public void attack() { if (tTime > Time.time) { return; } kick.moveCollider(facing); kick.kick(); player.anim.SetBool("attack", true); tTime = Time.time + cooldown; }