// Use this for initialization void Awake() { AppInit.Create(); AppInit.Instance.OnLoadResouce += new Func <bool>(() => { resourceManager.Init(); resourceGroupManager.OnInit(resourceManager); return(true); }); AppInit.Instance.OnLoadDevice += new Func <bool>(() => { viewManager.InitView(); return(true); }); AppInit.Instance.Init(); }