BBGamelib.CCActionManager.removeAllActionsFromTarget C# (CSharp) Method

removeAllActionsFromTarget() public method

public removeAllActionsFromTarget ( System target ) : void
target System
return void
		public void removeAllActionsFromTarget (System.Object target){
			if (target == null)
				return;
			tHashElement element = _targets.HASH_FIND_INT (target.GetHashCode());
			if (element != null) {
				if(element.actions.Contains(element.currentAction) && !element.currentActionSalvaged){
					element.currentActionSalvaged = true;
				}
				element.actions.Clear();
				if(_currentTarget == element)
					_currentTargetSavlvaged = true;
				else
					deleteHashElement(element);
			}
		}
		public void removeAction(CCAction action){

Usage Example

 /** Removes all actions from the running action list */
 public void stopAllActions()
 {
     _actionManager.removeAllActionsFromTarget(this);
 }