Beispiel #1
0
 private void Update()
 {
     if (RemoteLogSender.IsLogCacheUnitsChanged)
     {
         RemoteLogSender.IsLogCacheUnitsChanged = false;
         DebugUIView.PrintLogCache();
     }
 }
Beispiel #2
0
        public void Initialize(RigidbodyCharacterControllerBase character)
        {
            this.character = character;
            this.transform = character.transform;

            if (DebugUIView.Instance == null)
            {
                debugUIView = Resources.Load <DebugUIView>("DebugUIView");
            }
            debugUIView = UnityEngine.Object.Instantiate(debugUIView);
            //Debug.Log(DebugUIView.Instance);

            debugUIView.gameObject.SetActive(states.showDebugUI);
        }
Beispiel #3
0
 private void DoPrintLogCache()
 {
     if (!Debug.get_logger().get_logEnabled())
     {
         return;
     }
     if (this.IsOutputLock)
     {
         return;
     }
     DebugUIView.LogString = string.Empty;
     LogUnit[] array = RemoteLogSender.Instance.LogCacheUnits.ToArray();
     for (int i = 0; i < array.Length; i++)
     {
         LogUnit logUnit = array[i];
         DebugUIView.AddToLogString(logUnit.logString, logUnit.stackTrace, logUnit.logType);
     }
     this.SetOutput(DebugUIView.LogString);
 }
Beispiel #4
0
 private void Awake()
 {
     DebugUIView.Instance = this;
     base.AwakeBase(BindingContext.BindingContextMode.MonoBinding, false);
 }