public void OnClick() { if (inputField.text != "") { gameManager.SetPlayerName(inputField.text); logManager.AddLog(); scoreTextGenerater1.UpdateText(); scoreTextGenerater2.UpdateText(); resultController.HideMenus(); resultController.DisplayResultMenu(); resultController.SetInteractive(buttonObj, false); } }