Created
March 9, 2017 03:02
-
-
Save arun02139/6cb65332675cf84e9e7e8f28a6591eac to your computer and use it in GitHub Desktop.
Custom inspector trying to expose 'state' of battle at any time
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
using UnityEditor; | |
[CustomEditor(typeof(Battle))] | |
public class BattleInspector : Editor | |
{ | |
public override void OnInspectorGUI() | |
{ | |
var battle = (Battle)target; | |
EditorGUILayout.LabelField("State", battle.battleStateName); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment