// this is only broken out due to it being present 3 times void dismissMatchGuiButton() { if (GUILayout.Button("Dismiss Match")) { GPGTurnBasedMultiplayer.dismissMatch(currentMatch.matchId); currentMatch = null; } if (GUILayout.Button("Clear Current Local Match")) { currentMatch = null; } }