public static void Init()
 {
     FirebaseMessages.AddFCMIntValueHandler("cash", amount =>
     {
         //DataManager.Instance.money += amount;
         //Debug.Log("[FCMMessagingHandlers] adding bonus cash");
     });
 }
Beispiel #2
0
        public void InitializeFirebase()
        {
#if VIPERA_CORE
            MainThreadQueue.Enqueue(() =>
            {
                analytics.InitializeFirebase();
                remoteConfig.InitializeFirebase();
                FirebaseMessages.Init();
            });
#endif
        }
Beispiel #3
0
 void OnDestroy()
 {
     FirebaseMessages.ClearCallbacks();
 }