Beispiel #1
0
 public void SSActionEvent(SSAction source, SSActionEventType events = SSActionEventType.Completed,
                           int intParam = 0, string strParam = null, object objectParam = null)
 {
     source.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);
         }
     }
 }
Beispiel #2
0
        public void moveCharacter(zyzCharacterController characterController, Vector3 dest)
        {
            Vector3 curPos = characterController.getPosition();
            Vector3 midPos = curPos;

            if (dest.y > curPos.y)
            {
                midPos.y = dest.y;
            }
            else
            {
                midPos.x = dest.x;
            }
            SSAction action1   = CCMoveToAction.GetSSAction(midPos, characterController.speed);
            SSAction action2   = CCMoveToAction.GetSSAction(dest, characterController.speed);
            SSAction seqAction = CCSequenceAction.GetSSAction(1, 0, new List <SSAction> {
                action1, action2
            });

            this.RunAction(characterController.getGameObject(), seqAction, this);
        }
Beispiel #3
0
 public void SSActionEvent(SSAction source, SSActionEventType events = SSActionEventType.Completed,
                           int intParam = 0, string strParam = null, object objectParam = null)
 {
 }