示例#1
0
 private void OnCollisionEnter2D(Collision2D collision)
 {
     if (!isDie)
     {
         ai.Ai_Collision(collision);
     }
 }
示例#2
0
 private void OnCollisionEnter2D(Collision2D collision)
 {
     if (ai.Ai_Collision(collision))
     {
         anim.SetBool("run", false);
     }
 }
示例#3
0
 private void OnCollisionEnter2D(Collision2D collision)
 {
     if (ai.Ai_Collision(collision))
     {
         ai.speed = 0;
     }
 }
示例#4
0
文件: Radish.cs 项目: yasintorun/Game
    private void OnCollisionEnter2D(Collision2D collision)
    {
        if (collision.collider.tag != "Player")
        {
            isDie = false;
        }

        if (!isDie)
        {
            ai.Ai_Collision(collision);
            isDie = true;
        }
    }