game(scripts): only compile helpbox in the editor
This commit is contained in:
parent
cc493c7924
commit
a6a7c93a60
1 changed files with 3 additions and 1 deletions
|
@ -17,6 +17,7 @@ public enum HelpBoxMessageType
|
|||
Error
|
||||
}
|
||||
|
||||
#if UNITY_EDITOR
|
||||
public class HelpBoxAttribute : PropertyAttribute
|
||||
{
|
||||
public readonly HelpBoxMessageType MessageType;
|
||||
|
@ -67,4 +68,5 @@ public class HelpBoxAttributeDrawer : DecoratorDrawer
|
|||
case HelpBoxMessageType.Error: return MessageType.Error;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
Loading…
Add table
Reference in a new issue