示例#1
0
 void OnCollisionEnter2D(Collision2D other)
 {
     if (currentState != null && !IsInTransition)
     {
         currentState.CollisionEnter2D(other);
     }
 }