From e67562b8233cc25cbcba0416e4b09a0ad7e6e028 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=8F=E3=81=99=E3=81=AF?= Date: Tue, 29 Oct 2019 22:31:25 +0900 Subject: [PATCH] Fix typo OnDestory -> OnDestroy --- Assets/UniRx.Async/CancellationTokenSourceExtensions.cs | 2 +- Assets/UniRx.Async/Triggers/AsyncDestroyTrigger.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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) {