static StackObject *ScheduleOnceLocalNotification_0(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 4); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.DateTime @date = (System.DateTime) typeof(System.DateTime).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); System.String @message = (System.String) typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 3); System.String @title = (System.String) typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 4); EB.Sparx.PushManager instance_of_this_method = (EB.Sparx.PushManager) typeof(EB.Sparx.PushManager).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.ScheduleOnceLocalNotification(@title, @message, @date); return(__ret); }
private void InitializeFusion() { string path = "_GameAssets/Res/Prefabs/Audio/AudioListener"; EB.Assets.LoadAsync(path, typeof(GameObject), o => { if (o) { GameObject.Instantiate(o); GM.AssetUtils.FixShaderInEditor(o); } }); Shader.WarmupAllShaders(); DG.Tweening.DOTween.Init(); //QuestManager.Instance(); ProfileManager.Initialize(); PSPoolManager.InitializeInstance(); GameEngine.Instance.gameObject.AddComponent <TouchController>(); GameEngine.Instance.gameObject.AddComponent <FusionSparxHelper>(); EB.Sparx.SparxAPI.GlobalErrorHandler += eResponseCodeUIExtensions.GlobalErrorHandler; EB.Sparx.Response.SetErrorTranslatorHandler(eResponseCodeUIExtensions.ErrorTranslateHandler); EB.Sparx.PushManager pm = SparxHub.Instance.GetManager <EB.Sparx.PushManager>(); EB.Sparx.SparxAPI.GlobalResultHandler += pm.GlobalApiResultSyncHandler; SparxHub.Instance.ApiEndPoint.PostHandler += pm.EndPointPostAsyncHandler; SparxHub.Instance.ApiEndPoint.SuspendHandler += eResponseCodeUIExtensions.SuspendHandler; }
public override void Initialize(EB.Sparx.Config config) { //#if DEBUG //// DebugSystem.RegisterSystem("View Game Data", this); //// DebugSystem.RegisterSystem("Game Data Root Node", mRoot, "View Game Data"); //#endif // PushManager should Initialize before GameDataManager EB.Sparx.PushManager pm = EB.Sparx.Hub.Instance.PushManager; if (pm != null) { pm.OnHandleMessage += new System.Action <string, string, object>(OnHandleMessage); } }
public override void Initialize(Config config) { sEndPoint = SparxHub.Instance.ApiEndPoint; sPushManager = SparxHub.Instance.GetManager <EB.Sparx.PushManager>(); }