void Awake() { ApplicationFacade facade = ApplicationFacade.Instance; facade.RegisterCommand(NotificationEnum.STARTUP, typeof(StartupCommand)); //启动PureMVC程序,执行StartUP()方法,传入 facade.StartUp(PureViewComponents); }
static int StartUp(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); ApplicationFacade obj = (ApplicationFacade)ToLua.CheckObject <ApplicationFacade>(L, 1); obj.StartUp(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
private void Start() { ApplicationFacade facade = new ApplicationFacade(); facade.StartUp(this); }
// Use this for initialization void Start() { ApplicationFacade facade = ApplicationFacade.Instance as ApplicationFacade; facade.StartUp(ProConst.PRO_UIFORM_LOGINUIFORM); }