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