Example #1
0
 public bool OnCollisionEnter2D(Collision2D collisionInfo)
 {
     for (int i = 0; i < this.ActiveActions.get_Count(); i++)
     {
         SkillStateAction fsmStateAction = this.ActiveActions.get_Item(i);
         fsmStateAction.Init(this);
         fsmStateAction.DoCollisionEnter2D(collisionInfo);
     }
     this.RemoveFinishedActions();
     return(this.fsm.IsSwitchingState);
 }