public void Bootstrap() { App.On(ApplicationEvents.OnStartCompleted, () => { if (!string.IsNullOrEmpty(dispatch) && App.HasInstance <IRouter>()) { App.Make <IRouter>().Dispatch(dispatch); } }); }
public void Bootstrap() { App.On(ApplicationEvents.OnStartCompleted, () => { // called this function after, use App.Make function to get service // ex: App.Make<ILogger>().Debug("hello world"); // all can make service see : http://catlib.io/v1/guide/can-make.html //UnityEngine.Debug.Log("Hello CatLib"); UIManager.ShowPage <UITopBar>(); UIManager.ShowPage <UIMainPage>(); }); }