From 51937abbc8e63130350370cec1186a93d5ffd028 Mon Sep 17 00:00:00 2001 From: Mark Joshwel Date: Sat, 15 Feb 2025 15:11:02 +0800 Subject: [PATCH] game(scripts,opt): include using stmts in ifdef --- Game/Assets/Scripts/HelpBox.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Game/Assets/Scripts/HelpBox.cs b/Game/Assets/Scripts/HelpBox.cs index 7c4ea05..ef87e84 100644 --- a/Game/Assets/Scripts/HelpBox.cs +++ b/Game/Assets/Scripts/HelpBox.cs @@ -5,6 +5,7 @@ */ // https://discussions.unity.com/t/helpattribute-allows-you-to-use-helpbox-in-the-unity-inspector-window/659414/22 +#if UNITY_EDITOR using System; using UnityEditor; using UnityEngine; @@ -17,7 +18,6 @@ public enum HelpBoxMessageType Error } -#if UNITY_EDITOR public class HelpBoxAttribute : PropertyAttribute { public readonly HelpBoxMessageType MessageType;