addAction() public method

public addAction ( CCAction action, System target, bool paused ) : void
action CCAction
target System
paused bool
return void
Esempio n. 1
0
        /** Executes an action, and returns the action that is executed.
         * The node becomes the action's target.
         * @warning Starting from v0.8 actions don't retain their target anymore.
         * @since v0.7.1
         * @return An Action pointer
         */
        public CCAction runAction(CCAction action)
        {
            NSUtils.Assert(action != null, "Argument must be non-nil");

            _actionManager.addAction(action, this, !_isRunning);
            return(action);
        }