コード例 #1
0
 void OnDestroy()
 {
     // When this GameObject dies, it gets deregistered from the actions system.
     if (this.enabled)
     {
         ActionSpace.Unsubscribe(this.owner);
     }
 }
コード例 #2
0
ファイル: Actions.cs プロジェクト: bigstupidx/Halfway-Home
 /// <summary>
 /// Cancels all active actions in the component.
 /// </summary>
 /// <param name="component"></param>
 public static void Cancel(MonoBehaviour component)
 {
     ActionSpace.Clear(component);
 }