예제 #1
0
 private void Start()
 {
     _menu = new MenuController(_menuTextPrefab, _menuButtonPrefab);
     _menu.Button.onClick.AddListener(StartGame);
     StartGame();
 }
예제 #2
0
 public void Start()
 {
     var scene = transform.root;
     _menuController = (MenuController)scene.GetComponent(typeof(MenuController));
     _menuLabel = transform.GetComponentInChildren<MenuLabel>();
 }