Ejemplo n.º 1
0
        /// <summary>
        /// This initializes the GameObject and ensures it is in the scene.
        /// TODO: Allow redirecting to a custom logger.
        /// </summary>
        public static void InitializeLogger()
        {
            if (_logger != null)
            {
                return;
            }

            _logger = new PlayFabLogger();
        }
Ejemplo n.º 2
0
 /// <summary>
 /// This initializes the GameObject and ensures it is in the scene.
 /// </summary>
 public static void InitializeLogger(IPlayFabLogger setLogger = null)
 {
     if (_logger != null)
     {
         throw new InvalidOperationException("Once initialized, the logger cannot be reset.");
     }
     if (setLogger == null)
     {
         setLogger = new PlayFabLogger();
     }
     _logger = setLogger;
 }