public void Kill() { // Kills the Set and all of its tweens witout running any of the end actions. // It also does not attemtp to put all tweens to thier final targets. mEndActions.Clear(); mActive = false; foreach (RedTween.Track track in mTracks.Values) { track.Kill(); } RedTween.EndSet(this); RedTweenVisualizer.RemoveVizualization(mVisualizer); }
private void End() { mActive = false; RedTween.EndSet(this); for (int i = 0; i < mEndActions.Count; i++) { if (mEndActions[i] != null) { mEndActions[i](); } } mEndActions.Clear(); RedTweenVisualizer.RemoveVizualization(mVisualizer); }
public void ForceEnd() { mActive = false; foreach (RedTween.Track track in mTracks.Values) { track.Kill(); } RedTween.EndSet(this); for (int i = 0; i < mEndActions.Count; i++) { if (mEndActions[i] != null) { mEndActions[i](); } } mEndActions.Clear(); RedTweenVisualizer.RemoveVizualization(mVisualizer); }