Ejemplo n.º 1
0
        public static sequenceAction GetSSAction(int repeat, int start, List <SSAction> sequence, ISSActionCallback _callback)
        {
            sequenceAction action = ScriptableObject.CreateInstance <sequenceAction>();

            action.repeat   = repeat;
            action.sequence = sequence;
            action.start    = start;
            action.callback = _callback;
            return(action);
        }
Ejemplo n.º 2
0
        public void FlyUFO(List <GameObject> waitToFly, Ruler ruler, int round)
        {
            List <SSAction> toMove = new List <SSAction>();

            for (int i = 0; i < waitToFly.Count; i++)
            {
                toMove.Add(CCMoveToAction.GetSSAction(waitToFly[i], ruler.getDes(waitToFly[i].transform.position), ruler.getSpeed(round) * AnimateSpeed, null));
            }
            sequenceAction action = sequenceAction.GetSSAction(1, 0, toMove, this);

            addAction(action);
        }