Skip to content

Commit

Permalink
fix: build error
Browse files Browse the repository at this point in the history
  • Loading branch information
fuqunaga committed Aug 23, 2024
1 parent f055665 commit 21ccc69
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System;
using System.Diagnostics;

#if UNITY_EDITOR
using UnityEditor;
#endif
Expand All @@ -15,7 +14,7 @@ public static class StaticResourceUtility
{
#if UNITY_EDITOR
public static event Action onResetStaticResource;

static StaticResourceUtility()
{
EditorApplication.playModeStateChanged += state =>
Expand All @@ -31,7 +30,9 @@ static StaticResourceUtility()
[Conditional("UNITY_EDITOR")]
public static void AddResetStaticResourceCallback(Action callback)
{
#if UNITY_EDITOR
onResetStaticResource += callback;
#endif
}
}
}

0 comments on commit 21ccc69

Please sign in to comment.