public override void OnInspectorGUI() { base.OnInspectorGUI(); if (dice == null) dice = (DiceTest) target; if (GUILayout.Button("Test roll the dice")) dice.TestDiceResult (); }
public override void OnInspectorGUI() { base.OnInspectorGUI(); if (dice == null) { dice = (DiceTest)target; } if (GUILayout.Button("Test roll the dice")) { dice.TestDiceResult(); } }