public override void OnInspectorGUI() { DrawDefaultInspector(); HighScoreController scoreController = (HighScoreController)target; GUILayout.Label("Your score"); if (GUILayout.Button("Add 10 to curr score")) { if (HighScoreController.onAddToCurrentScore != null) { HighScoreController.onAddToCurrentScore(10); } } if (GUILayout.Button("Remove 10 from curr score")) { if (HighScoreController.onRemoveFromCurrentScore != null) { HighScoreController.onRemoveFromCurrentScore(10); } } if (GUILayout.Button("Reset curr Score")) { if (HighScoreController.onRemoveFromCurrentScore != null) { HighScoreController.onRemoveFromCurrentScore(99999999); } } GUILayout.Label("High score"); if (GUILayout.Button("Set High Score")) { var currScore = scoreController.GetCurrScore(); if (HighScoreController.onSetHighScore != null) { HighScoreController.onSetHighScore(currScore); } } if (GUILayout.Button("Reset High Score")) { if (HighScoreController.onSetHighScore != null) { HighScoreController.onSetHighScore(0); } } }