Example #1
0
 private void OnCollisionExit2D(Collision2D collision)
 {
     //if (collision.collider.tag != this.tag && (collision.collider.tag.Contains("soldier") || collision.collider.tag.Contains("miner")))
     if (stopedWalking)
     {
         walk.RewalkToTarget();
         stopedWalking = false;
     }
 }