BBGamelib.CCActionManager.removeAction C# (CSharp) Method

removeAction() public method

public removeAction ( CCAction action ) : void
action CCAction
return void
		public void removeAction(CCAction action){
			if (action == null)
				return;
			System.Object target = action.originalTarget;
			tHashElement element = _targets.HASH_FIND_INT(target.GetHashCode());
			if (element != null) {
				int i = element.actions.IndexOf(action);
				if(i != -1){
					removeActionAtIndex(i, element);
				}
			}
		}
		public void removeActionByTag(int aTag, System.Object target){

Usage Example

 /** Removes an action from the running action list */
 public void stopAction(CCAction action)
 {
     _actionManager.removeAction(action);
 }