Skip to content

Commit c0fa2cc

Browse files
committed
- Build error fix
1 parent 07a9b7e commit c0fa2cc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Entity System/Unity Layer/EasyCSBehavior.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ private void OnDisable()
105105
InternalOnDisable();
106106
}
107107

108+
#if UNITY_EDITOR
108109
protected virtual void OnValidate()
109110
{
110111
ValidateSetup();
@@ -254,6 +255,8 @@ private void EditorSortComponentOrder()
254255
Debug.Log($"[EasyCS] Components sorted on {gameObject.name}.");
255256
}
256257

258+
#endif
259+
257260
/// <summary>
258261
/// DO NOT override unless you know what you are doing
259262
/// </summary>

0 commit comments

Comments
 (0)