private void OnGUI() { if (GUI.Button(new Rect(Screen.width / 2 - 50, 5, 100, 30), "Start Wave")) { if (life.GetLife() > 0) { OnClicked?.Invoke(); } } if (GUI.Button(new Rect(Screen.width / 1.2f - 50, 300, 100, 30), "Buy Tower 1")) { StartCoroutine(UpdateGUIElements()); } GUI.Box(new Rect(5, 5, 300, 30), resource_display_string); //GUI.Box(new Rect(1000, 300, 300, 30), "thing"); }