private void DoGUI(TouchProcessType type) { var data = GetData(type); var result = ""; GUILayout.Label($"Begin Phase {data.beginPhaseTimeMS - GetLastBeginTouchTimeMS()}ms"); if (GetLastEndTouchTimeMS() == -1) { result = "<Waiting for end phase in Java>"; } else if (data.endPhaseTimeMS == -1) { result = "<Waiting for end phase in C#"; } else { result = $"{data.endPhaseTimeMS - GetLastEndTouchTimeMS()}"; } GUILayout.Label($"End Phase {result} ms"); GUILayout.Label($"Begin Phase Count {data.beginPhaseCount}, End Phase Count {data.endPhaseCount}"); }
private TouchProcessData GetData(TouchProcessType type) { return(m_Data[(int)type]); }