private void OnCollisionEnter(Collision collision) { if (Jumping && collision.gameObject.tag == "Floor") { Jumping = false; frog.AttackFinished(); iceAtk.SetActive(true); } else if (Jumping && collision.gameObject.tag == "Player") { //hit y empujar Jumping = false; frog.AttackFinished(); } }
private void OnCollisionEnter(Collision collision) { if (Jumping && collision.gameObject.tag == "Floor") { m_attack.SetActive(true); Jumping = false; frog.AttackFinished(); } }