예제 #1
0
 public void Init(IAdministratorController controller)
 {
     administratorController = controller;
     orderBoard            = administratorController.GetOrderBoardController();
     environmentController = RootController.GetControllerByType <IEnvironmentController>();
     cookTablePlaces       = environmentController.GetCookTablePlaces();
 }
예제 #2
0
        private void Start()
        {
            RootController.OnModuleAreReady -= Start;

            environmentController = RootController.GetControllerByType <IEnvironmentController>();
            administrator         = new GameObject("Administrator").AddComponent <Administrator>();
            administrator.Init(this);

            administrator.GetTableHall();
        }