Example #1
0
 // Use this for initialization
 void Start()
 {
     updatesBeforeException = 0;
     SGFirebase.Setup();
     Crashlytics.SetCustomKey("chave", "valor");
     Crashlytics.Log("Log de erros aparece aqui");
 }
Example #2
0
    void Start()
    {
        if (firebaseActivate)
        {
            SGFirebase.Setup();
            if (Debug.isDebugBuild)
            {
                StartCoroutine(SGFirebase.RemoteSettingsCountDown(debugRemoteSettingsIntervalUpdate));
            }
            else
            {
                StartCoroutine(SGFirebase.RemoteSettingsCountDown(remoteSettingsIntervalUpdate));
            }
        }
        //analytics
        SGAnalytics.AnalyticsTraking(SGAnalytics.AnalyticsEvents.StartGame);
        //adversiting
        SGAdvertising.Setup();

        StartGame();

        // sync scenes
        SGScenes.IndexAbout        = indexAbout;
        SGScenes.IndexTermsPrivacy = indexTermsPrivacy;
        SGScenes.IndexEnding       = indexEnding;
        SGScenes.IndexFirstLevel   = indexFirstLevel;
        SGScenes.IndexGameOver     = indexGameOver;
        SGScenes.IndexHome         = indexHome;
        SGScenes.IndexLoading      = indexLoading;
        SGScenes.IndexLoadSave     = indexLoadSave;
        SGScenes.IndexSettings     = indexSettings;
        SGScenes.IndexAuth         = indexAuth;
        SGScenes.IndexHelp         = indexHelp;

        SGDeepLink.ReceiveExternalCall(deepLinkParam);
    }