public void Inject() { MainPageUIController control = MainPageUIController.Instance; SchemePageController schemeController = SchemePageController.Instance; KeyPageController keyBoardController = KeyPageController.Instance; //SetWallController setWallController = SetWallController.Instance; Instance.inject(PageType.MainPage, control); UICopntrollerData Scheme = Instance.inject(PageType.Scheme, schemeController); UICopntrollerData KeyBoard = Instance.inject(PageType.KeyBoard, keyBoardController); //UICopntrollerData SetWall = Instance.inject(PageType.SetWall, setWallController); Scheme.state = SimpleLoadedState.Success; KeyBoard.state = SimpleLoadedState.Success; //SetWall.state = SimpleLoadedState.Success; }
public OptionsController() { panel = optionsPage = OptionsPage.Instance; mainController = MainPageUIController.Instance; }