예제 #1
0
    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}");
    }
예제 #2
0
 private TouchProcessData GetData(TouchProcessType type)
 {
     return(m_Data[(int)type]);
 }