public void ManualUpdate(float deltaTime) { Debug.Assert(_renderer != null, "call Initialize()"); _input.eventConsumer = null; _root.UpdateEventRecursive(0, 0, _input, true); // inputのうち非継続的な状態をリセット _input.hasJustClicked = false; _input.hasJustDragStarted = false; _root.UpdateRecursive(); _root.DrawRecursive(0, 0, _renderer); // ドラッグマーク描画 if (_input.draggedControl != null) { DrawDragMark(_input.draggedControl); } var consumer = _input.eventConsumer; if (consumer != null) { if (consumer.onEventConsume != null) { consumer.onEventConsume(); } } }
public void ManualUpdate(float deltaTime) { UnityEngine.Profiling.Profiler.BeginSample("DebugUiManager.ManualUpdate"); Debug.Assert(_renderer != null, "call Initialize()"); _input.eventConsumer = null; UnityEngine.Profiling.Profiler.BeginSample("DebugUiManager.UpdateEventRecursive"); _root.UpdateEventRecursive(0, 0, _input, true); UnityEngine.Profiling.Profiler.EndSample(); // inputのうち非継続的な状態をリセット _input.hasJustClicked = false; _input.hasJustDragStarted = false; UnityEngine.Profiling.Profiler.BeginSample("DebugUiManager.UpdateRecursize"); _root.UpdateRecursive(); UnityEngine.Profiling.Profiler.EndSample(); UnityEngine.Profiling.Profiler.BeginSample("DebugUiManager.DrawRecursive"); _root.DrawRecursive(0, 0, _renderer); UnityEngine.Profiling.Profiler.EndSample(); // ドラッグマーク描画 if (_input.draggedControl != null) { DrawDragMark(_input.draggedControl); } var consumer = _input.eventConsumer; if (consumer != null) { if (consumer.onEventConsume != null) { consumer.onEventConsume(); } } UnityEngine.Profiling.Profiler.EndSample(); }