Exemplo n.º 1
0
 public void Bootstrap()
 {
     App.On(ApplicationEvents.OnStartCompleted, () =>
     {
         if (!string.IsNullOrEmpty(dispatch) && App.HasInstance <IRouter>())
         {
             App.Make <IRouter>().Dispatch(dispatch);
         }
     });
 }
Exemplo n.º 2
0
        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>();
            });
        }