private void OnCollisionEnter2D(Collision2D collision) { if (!isDie) { ai.Ai_Collision(collision); } }
private void OnCollisionEnter2D(Collision2D collision) { if (ai.Ai_Collision(collision)) { anim.SetBool("run", false); } }
private void OnCollisionEnter2D(Collision2D collision) { if (ai.Ai_Collision(collision)) { ai.speed = 0; } }
private void OnCollisionEnter2D(Collision2D collision) { if (collision.collider.tag != "Player") { isDie = false; } if (!isDie) { ai.Ai_Collision(collision); isDie = true; } }