public void ActionPerformed(Object button) { Debug.Log(button.ToString()); if (button == buttonUse) { state.DoUse(this); } else if (button == buttonAlarm) { state.DoAlarm(this); } else if (button == buttonPhone) { state.DoPhone(this); } else if (button == buttonExit) { UnityEditor.EditorApplication.isPlaying = false; } else { Debug.Log("?"); } }