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