Пример #1
0
        //private GameObject d;

        public void SSActionEvent(SSAction source, SSActionEventType events = SSActionEventType.Competeted,
                                  int intParam = 0, string strParam = null, Object objectParam = null)
        {
            PatrolAction p = source as PatrolAction;

            p.PatrolData.Hit = false;
            PatrolAction ac = PatrolAction.GetPatrolAction((p.WalkWay + 1) % 4, p.OriPos);

            RunAction(p.gameobject, ac, this);
        }
Пример #2
0
 public void SSActionEvent(SSAction s, SSActionEventType e = SSActionEventType.Competeted,
                           int intParam = 0, string strParam = null, Object objectParam = null)
 {
     s.destroy = false;
     this.start++;
     if (this.start >= sequence.Count)
     {
         this.start = 0;
         if (repeat > 0)
         {
             repeat--;
         }
         if (repeat == 0)
         {
             this.destroy = true;
             this.callback.SSActionEvent(this);
         }
     }
 }
Пример #3
0
 public void SSActionEvent(SSAction source, SSActionEventType events = SSActionEventType.Competeted, int intParam = 0, string strParam = null, Object objectParam = null)
 {
 }