void OnDestroy() { if (Application.isPlaying) { StratusActionSpace.Unsubscribe(this.owner); } }
private void Awake() { this.hideFlags = HideFlags.HideAndDontSave | HideFlags.DontSaveInEditor; if (Application.isPlaying) { this.owner = this.gameObject; StratusActionSpace.Subscribe(this.owner); } }
public static StratusActionDriver Actions(this GameObject go) { // Subscribe this GameObject to the ActionSpace return(StratusActionSpace.Subscribe(go)); }
/// <summary> /// Cancels all active actions in the component. /// </summary> /// <param name="component"></param> public static void Cancel(MonoBehaviour component) { StratusActionSpace.Clear(component); }