// Use this for initialization public void Start() { _mo = gameObject.GetComponent <MenuOverlord> (); textPrefab = (GameObject)Resources.Load("Text/TextBlock"); buttonPrefab = (GameObject)Resources.Load("Text/ButtonBlock"); subMenuHolder.transform.parent = transform; }
void InitMenuManager() { _menuOverlord = GameObject.Find("MainMenu").GetComponent <MenuOverlord> (); _menuOverlord.GetLevelManager(); }