public void Init(IAdministratorController controller) { administratorController = controller; orderBoard = administratorController.GetOrderBoardController(); environmentController = RootController.GetControllerByType <IEnvironmentController>(); cookTablePlaces = environmentController.GetCookTablePlaces(); }
private void Start() { RootController.OnModuleAreReady -= Start; environmentController = RootController.GetControllerByType <IEnvironmentController>(); administrator = new GameObject("Administrator").AddComponent <Administrator>(); administrator.Init(this); administrator.GetTableHall(); }