Update TaskTracker.cs

Missed define around task tracker contents.
pull/366/head
KAJed82 2022-06-14 08:03:33 -04:00 committed by GitHub
parent b64dc571a7
commit 5d4eeaf9da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -76,7 +76,7 @@ namespace Cysharp.Threading.Tasks
[Conditional( "ENABLE_PROFILER" )]
public static void TrackActiveTask(IUniTaskSource task, int skipFrame)
{
#if UNITY_EDITOR
#if ENABLE_PROFILER
dirty = true;
if (!EnableState.EnableTracking) return;
var stackTrace = EnableState.EnableStackTrace ? new StackTrace(skipFrame, true).CleanupAsyncStackTrace() : "";
@ -99,7 +99,7 @@ namespace Cysharp.Threading.Tasks
[Conditional( "ENABLE_PROFILER" )]
public static void RemoveTracking(IUniTaskSource task)
{
#if UNITY_EDITOR
#if ENABLE_PROFILER
dirty = true;
if (!EnableState.EnableTracking) return;
var success = tracking.TryRemove(task);