示例#1
0
文件: Node.cs 项目: liwq-net/liwq718
 /// <summary>
 /// resumes all scheduled selectors and actions.
 /// Called internally by onEnter
 /// </summary>
 public void resumeSchedulerAndActions()
 {
     CCScheduler.sharedScheduler().resumeTarget(this);
     CCActionManager.sharedManager().resumeTarget(this);
 }
示例#2
0
文件: Node.cs 项目: liwq-net/liwq718
 /// <summary>
 /// pauses all scheduled selectors and actions.
 /// Called internally by onExit
 /// </summary>
 public void pauseSchedulerAndActions()
 {
     CCScheduler.sharedScheduler().pauseTarget(this);
     CCActionManager.sharedManager().pauseTarget(this);
 }
示例#3
0
文件: Node.cs 项目: liwq-net/liwq718
 /// <summary>
 /// Gets an action from the running action list given its tag
 /// </summary>
 /// <returns>the Action the with the given tag</returns>
 public CCAction GetActionByTag(int tag)
 {
     Debug.Assert((int)tag != (int)NodeTag.kCCNodeTagInvalid, "Invalid tag");
     return(CCActionManager.sharedManager().getActionByTag((uint)tag, this));
 }
示例#4
0
文件: Node.cs 项目: liwq-net/liwq718
 /// <summary>
 /// Returns the numbers of actions that are running plus the ones that are schedule to run (actions in actionsToAdd and actions arrays).
 /// Composable actions are counted as 1 action. Example:
 /// If you are running 1 Sequence of 7 actions, it will return 1.
 /// If you are running 7 Sequences of 2 actions, it will return 7.
 /// </summary>
 public uint NumberOfRunningActions()
 {
     return(CCActionManager.sharedManager().numberOfRunningActionsInTarget(this));
 }
示例#5
0
文件: Node.cs 项目: liwq-net/liwq718
 /// <summary>
 /// Removes an action from the running action list
 /// </summary>
 public void StopAction(CCAction action)
 {
     CCActionManager.sharedManager().removeAction(action);
 }
示例#6
0
文件: Node.cs 项目: liwq-net/liwq718
 /// <summary>
 /// Removes an action from the running action list given its tag
 /// @since v0.7.1
 /// </summary>
 public void StopActionByTag(int tag)
 {
     Debug.Assert(tag != (int)NodeTag.kCCNodeTagInvalid, "Invalid tag");
     CCActionManager.sharedManager().removeActionByTag(tag, this);
 }
示例#7
0
文件: Node.cs 项目: liwq-net/liwq718
 /// <summary>
 /// Removes all actions from the running action list
 /// </summary>
 public void StopAllActions()
 {
     CCActionManager.sharedManager().removeAllActionsFromTarget(this);
 }
示例#8
0
文件: Node.cs 项目: liwq-net/liwq718
 /// <summary>
 /// 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.
 /// @return
 /// </summary>
 /// <returns>An Action pointer</returns>
 public CCAction RunAction(CCAction action)
 {
     Debug.Assert(action != null, "Argument must be non-nil");
     CCActionManager.sharedManager().addAction(action, this, !IsRunning);
     return(action);
 }
示例#9
0
 public void stopActionByTag(int tag)
 {
     CCActionManager.sharedManager().removeActionByTag(tag, this);
 }
示例#10
0
 public CCAction runAction(CCAction action)
 {
     CCActionManager.sharedManager().addAction(action, this, !this.m_bIsRunning);
     return(action);
 }
示例#11
0
 public CCAction getActionByTag(int tag)
 {
     return(CCActionManager.sharedManager().getActionByTag((uint)tag, this));
 }