mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-22 08:08:51 -05:00
Add appropriate UNITY_EDITOR compiler flags (#425)
This commit is contained in:
parent
50d04f1c9e
commit
808af5bb74
@ -80,7 +80,9 @@ namespace UnityAtoms
|
|||||||
// Therefore, there might still be null instances, but even though not ideal,
|
// Therefore, there might still be null instances, but even though not ideal,
|
||||||
// it should not cause any problems.
|
// it should not cause any problems.
|
||||||
// More info: https://issuetracker.unity3d.com/issues/ondisable-and-ondestroy-methods-are-not-called-when-a-scriptableobject-is-deleted-manually-in-project-window
|
// More info: https://issuetracker.unity3d.com/issues/ondisable-and-ondestroy-methods-are-not-called-when-a-scriptableobject-is-deleted-manually-in-project-window
|
||||||
|
#if UNITY_EDITOR
|
||||||
_instances.Remove(this);
|
_instances.Remove(this);
|
||||||
|
#endif
|
||||||
// Clear all delegates when exiting play mode
|
// Clear all delegates when exiting play mode
|
||||||
UnregisterAll();
|
UnregisterAll();
|
||||||
}
|
}
|
||||||
|
@ -74,7 +74,9 @@ namespace UnityAtoms
|
|||||||
// Therefore, there might still be null instances, but even though not ideal,
|
// Therefore, there might still be null instances, but even though not ideal,
|
||||||
// it should not cause any problems.
|
// it should not cause any problems.
|
||||||
// More info: https://issuetracker.unity3d.com/issues/ondisable-and-ondestroy-methods-are-not-called-when-a-scriptableobject-is-deleted-manually-in-project-window
|
// More info: https://issuetracker.unity3d.com/issues/ondisable-and-ondestroy-methods-are-not-called-when-a-scriptableobject-is-deleted-manually-in-project-window
|
||||||
|
#if UNITY_EDITOR
|
||||||
_instances.Remove(this);
|
_instances.Remove(this);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#if UNITY_EDITOR
|
#if UNITY_EDITOR
|
||||||
|
@ -160,7 +160,9 @@ namespace UnityAtoms
|
|||||||
// Therefore, there might still be null instances, but even though not ideal,
|
// Therefore, there might still be null instances, but even though not ideal,
|
||||||
// it should not cause any problems.
|
// it should not cause any problems.
|
||||||
// More info: https://issuetracker.unity3d.com/issues/ondisable-and-ondestroy-methods-are-not-called-when-a-scriptableobject-is-deleted-manually-in-project-window
|
// More info: https://issuetracker.unity3d.com/issues/ondisable-and-ondestroy-methods-are-not-called-when-a-scriptableobject-is-deleted-manually-in-project-window
|
||||||
|
#if UNITY_EDITOR
|
||||||
_instances.Remove(this);
|
_instances.Remove(this);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user