Beispiel #1
0
    public void SendUFO(GameObject UFO)
    {
        CCFlyAction    flyAction = CCFlyAction.GetSSAction(UFO);
        CSequenceAtion actions   = CSequenceAtion.GetSSAcition(1, 0, new List <SSAction> {
            flyAction
        });

        this.RunAction(UFO, actions, this);
    }
Beispiel #2
0
    public static CSequenceAtion GetSSAcition(int repeat, int start, List <SSAction> sequence)
    {
        CSequenceAtion action = ScriptableObject.CreateInstance <CSequenceAtion>();

        action.repeat   = repeat;
        action.sequence = sequence;
        action.start    = start;
        return(action);
    }
Beispiel #3
0
    public void moveRole(GameObject role, Vector3 target, float speed)
    {
        CCMoveToAction moveRoleAction1 = CCMoveToAction.GetSSAction(target, speed);
        //可能有action2,3...

        CSequenceAtion actions = CSequenceAtion.GetSSAcition(1, 0, new List <SSAction> {
            moveRoleAction1
        });

        this.RunAction(role, actions, this);
    }