Esempio n. 1
0
    // Start is called before the first frame update

    public static CCFlyAction2 GetSSAction(float speed)
    {
        CCFlyAction2 action = ScriptableObject.CreateInstance <CCFlyAction2>();

        action.speed = speed;
        return(action);
    }
Esempio n. 2
0
    public override void fly(GameObject ufo, float speed)
    {
        CCFlyAction2 action = CCFlyAction2.GetSSAction(speed);

        this.RunAction(ufo, action, this);
    }