예제 #1
0
 private static void OnManifestLoaded(Facepunch.Models.Manifest manifest)
 {
     UnityEngine.Assertions.Assert.IsNotNull <Facepunch.Models.Manifest>(manifest);
     Facepunch.Application.Integration.OnManifestFile(manifest);
     if ((!UnityEngine.Application.isEditor || !Facepunch.Application.Integration.RestrictEditorFunctionality) && Facepunch.Application.Analytics == null && !string.IsNullOrEmpty(manifest.AnalyticUrl))
     {
         if (string.IsNullOrEmpty(Facepunch.Application.Integration.UserId))
         {
             if (Facepunch.Application.Integration.DebugOutput)
             {
                 UnityEngine.Debug.LogWarning("[Analytics] Skipping Analytics because userid is unset");
             }
             return;
         }
         Facepunch.Application.Analytics = new Analytics(manifest.AnalyticUrl);
     }
 }
 public virtual void OnManifestFile(Facepunch.Models.Manifest manifest)
 {
 }