Ejemplo n.º 1
0
        /**
         * <summary>Creates a new instance of the 'ActionList: Kill' Action</summary>
         * <param name = "actionListAsset">The ActionList asset to kill</param>
         * <returns>The generated Action</returns>
         */
        public static ActionStopActionList CreateNew(ActionListAsset actionListAsset)
        {
            ActionStopActionList newAction = (ActionStopActionList)CreateInstance <ActionStopActionList>();

            newAction.listSource    = ListSource.AssetFile;
            newAction.invActionList = actionListAsset;
            return(newAction);
        }
Ejemplo n.º 2
0
        /**
         * <summary>Creates a new instance of the 'ActionList: Kill' Action</summary>
         * <param name = "actionList">The ActionList to kill</param>
         * <returns>The generated Action</returns>
         */
        public static ActionStopActionList CreateNew(ActionList actionList)
        {
            ActionStopActionList newAction = (ActionStopActionList)CreateInstance <ActionStopActionList>();

            newAction.listSource = ListSource.InScene;
            newAction.actionList = actionList;
            return(newAction);
        }