public override void OnInspectorGUI() { DrawDefaultInspector(); Script_SyncedTriggerPuzzleController ctrl = (Script_SyncedTriggerPuzzleController)target; if (GUILayout.Button("InitialState()")) { ctrl.InitialState(); } }
public override void OnInspectorGUI() { DrawDefaultInspector(); Script_SyncedTriggerPuzzleController ctrl = (Script_SyncedTriggerPuzzleController)target; if (GUILayout.Button("InitialState()")) { ctrl.InitialState(); } }