diff --git a/Assets/UniRx.Async/CancellationTokenSourceExtensions.cs b/Assets/UniRx.Async/CancellationTokenSourceExtensions.cs index 17618d7..96cc03b 100644 --- a/Assets/UniRx.Async/CancellationTokenSourceExtensions.cs +++ b/Assets/UniRx.Async/CancellationTokenSourceExtensions.cs @@ -40,7 +40,7 @@ namespace UniRx.Async public static void RegisterRaiseCancelOnDestroy(this CancellationTokenSource cts, GameObject gameObject) { var trigger = gameObject.GetAsyncDestroyTrigger(); - trigger.AddCancellationTriggerOnDestory(cts); + trigger.AddCancellationTriggerOnDestroy(cts); } } } diff --git a/Assets/UniRx.Async/Triggers/AsyncDestroyTrigger.cs b/Assets/UniRx.Async/Triggers/AsyncDestroyTrigger.cs index f5a6ed6..245126f 100644 --- a/Assets/UniRx.Async/Triggers/AsyncDestroyTrigger.cs +++ b/Assets/UniRx.Async/Triggers/AsyncDestroyTrigger.cs @@ -13,7 +13,7 @@ namespace UniRx.Async.Triggers bool called = false; UniTaskCompletionSource promise; CancellationTokenSource cancellationTokenSource; // main cancellation - object canellationTokenSourceOrQueue; // external from AddCancellationTriggerOnDestory + object canellationTokenSourceOrQueue; // external from AddCancellationTriggerOnDestroy public CancellationToken CancellationToken { @@ -63,7 +63,7 @@ namespace UniRx.Async.Triggers } /// Add Cancellation Triggers on destroy - public void AddCancellationTriggerOnDestory(CancellationTokenSource cts) + public void AddCancellationTriggerOnDestroy(CancellationTokenSource cts) { if (called) {