private void Update() { if (RemoteLogSender.IsLogCacheUnitsChanged) { RemoteLogSender.IsLogCacheUnitsChanged = false; DebugUIView.PrintLogCache(); } }
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); }
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); }
private void Awake() { DebugUIView.Instance = this; base.AwakeBase(BindingContext.BindingContextMode.MonoBinding, false); }