// Start is called before the first frame update private void OnEnable() { Debug.Log("game start"); uiObject = GameObject.Find("UI"); ButtonScript.OpenMenu("MainMenu"); }