void OnDestroy() { // When this GameObject dies, it gets deregistered from the actions system. if (this.enabled) { ActionSpace.Unsubscribe(this.owner); } }
/// <summary> /// Cancels all active actions in the component. /// </summary> /// <param name="component"></param> public static void Cancel(MonoBehaviour component) { ActionSpace.Clear(component); }