Exemple #1
0
    void addCombinedMoving(GameObject sourceObj, Vector3[] target, float[] speed, bool isCatching)
    {
        List <SSAction> acList = new List <SSAction>();

        for (int i = 0; i < target.Length; i++)
        {
            acList.Add(CCMoveToAction.CreateSSAction(target[i], speed[i], isCatching));
        }
        CCSequeneActions MoveSeq = CCSequeneActions.CreateSSAction(acList);

        this.runAction(sourceObj, MoveSeq, this);
    }
 void addSingleMoving(GameObject sourceObj, Vector3 target, float speed, bool isCatching)
 {
     this.runAction(sourceObj, CCMoveToAction.CreateSSAction(target, speed, isCatching), this);
 }