mirror of
https://github.com/Cysharp/UniTask.git
synced 2026-05-23 00:00:14 +00:00
fix: typo
This commit is contained in:
@@ -18,13 +18,13 @@ namespace Cysharp.Threading.Tasks
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/// <summary>This CancellationToken is canceled when the MonoBehaviour will be destroyed.</summary>
|
/// <summary>This CancellationToken is canceled when the GameObject will be destroyed.</summary>
|
||||||
public static CancellationToken GetCancellationTokenOnDestroy(this GameObject gameObject)
|
public static CancellationToken GetCancellationTokenOnDestroy(this GameObject gameObject)
|
||||||
{
|
{
|
||||||
return gameObject.GetAsyncDestroyTrigger().CancellationToken;
|
return gameObject.GetAsyncDestroyTrigger().CancellationToken;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>This CancellationToken is canceled when the MonoBehaviour will be destroyed.</summary>
|
/// <summary>This CancellationToken is canceled when the Component will be destroyed.</summary>
|
||||||
public static CancellationToken GetCancellationTokenOnDestroy(this Component component)
|
public static CancellationToken GetCancellationTokenOnDestroy(this Component component)
|
||||||
{
|
{
|
||||||
#if UNITY_2022_2_OR_NEWER
|
#if UNITY_2022_2_OR_NEWER
|
||||||
|
|||||||
Reference in New Issue
Block a user