void OnGUI() { GUI.skin = skin; GUI.DrawTexture(new Rect((Screen.width / 2) - 5, 0, 10, Screen.height), tempMiddle); if (!seekerMove) { GUILayout.BeginArea(new Rect(0, (Screen.height / 2) - 50, Screen.width / 2, Screen.height / 2)); GUILayout.Label("Cant move during warmup", "warmup"); GUILayout.EndArea(); } if (tallyed) { if (statvr.GetWinner() == statvr.getHiderName()) { GUILayout.BeginArea(new Rect(0, 0, Screen.width, 400)); GUILayout.Label("WINNER", "winnerR"); GUILayout.EndArea(); } GUILayout.BeginArea(new Rect((Screen.width / 2) + 30, 50, (Screen.width / 2) - 60, Screen.height - 50)); GUILayout.BeginVertical("box"); GUILayout.Label("Your score breakdown"); foreach (string tally in Htally) { GUILayout.Label(tally); } GUILayout.Label("Total you scored: " + scoreMngr.GetScore(false)); GUILayout.EndVertical(); GUILayout.EndArea(); // ======================= if (statvr.GetWinner() == statvr.getSeekerName()) { GUILayout.BeginArea(new Rect(0, 0, Screen.width, 400)); GUILayout.Label("WINNER", "winnerL"); GUILayout.EndArea(); } GUILayout.BeginArea(new Rect(30, 50, (Screen.width / 2) - 60, Screen.height - 50)); GUILayout.BeginVertical("box"); GUILayout.Label("Your score breakdown"); foreach (string tally in Stally) { GUILayout.Label(tally); } GUILayout.Label("Total you scored: " + scoreMngr.GetScore(true)); GUILayout.EndVertical(); GUILayout.EndArea(); GUILayout.BeginArea(new Rect(0, 0, Screen.width, 400)); GUILayout.Label(gameTime.GetTimeString(), "Timer"); GUILayout.EndArea(); } else { GUILayout.BeginArea(new Rect(0, 0, Screen.width, 400)); if (gameTime.GetStateInt() < 2) { GUILayout.Label(gameTime.GetStateString() + " Time: " + gameTime.GetTimeString(), "Timer"); } else { GUILayout.Label(gameTime.GetStateString(), "Timer"); } GUILayout.EndArea(); GUI.Box(new Rect(Screen.width - 170, Screen.height - 100, 150, 20), "Hider Gold: " + statvr.GetGold(false)); GUI.Box(new Rect(20, Screen.height - 100, 150, 20), "Seeker Gold: " + statvr.GetGold(true)); } }