예제 #1
0
 protected virtual void Awake()
 {
     if (logger == null)
     {
         logger = new VoiceLogger(this, string.Format("{0}.{1}", name, this.GetType().Name), logLevel);
     }
 }
예제 #2
0
 protected override void Awake()
 {
     base.Awake();
     Logger = new VoiceLogger(this, string.Format("{0}.{1}", name, this.GetType().Name), logLevel);
     if (this.SpeakerFactory == null)
     {
         this.SpeakerFactory = SimpleSpeakerFactory;
     }
     if (enableSupportLogger)
     {
         this.supportLoggerComponent                 = this.gameObject.AddComponent <SupportLogger>();
         this.supportLoggerComponent.Client          = this.Client;
         this.supportLoggerComponent.LogTrafficStats = true;
     }
     #if !UNITY_ANDROID && !UNITY_IOS
     if (runInBackground)
     {
         Application.runInBackground = runInBackground;
     }
     #endif
 }