예제 #1
0
        public void moveRole(GameObject role, Vector3 middle_pos, Vector3 end_pos, float speed)
        {
            SSAction action1 = SSMoveToAction.GetSSAction(middle_pos, speed);
            SSAction action2 = SSMoveToAction.GetSSAction(end_pos, speed);

            moveRoleToLandorBoat = SequenceAction.GetSSAcition(1, 0, new List <SSAction> {
                action1, action2
            });
            this.RunAction(role, moveRoleToLandorBoat, this);
        }
예제 #2
0
 public void SSActionEvent(SSAction source, SSActionEventType events = SSActionEventType.Competeted,
                           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);
         }
     }
 }
예제 #3
0
 public void SSActionEvent(SSAction source, SSActionEventType events = SSActionEventType.Competeted,
                           int intParam = 0, string strParam = null, Object objectParam = null)
 {
 }