示例#1
0
        private void StartRecording()
        {
            if (NetworkProfiler.IsRunning)
            {
                StopRecording();
            }

            if (NetworkProfiler.Ticks != null && NetworkProfiler.Ticks.Count >= 2)
            {
                m_Curve = AnimationCurve.Constant(NetworkProfiler.Ticks.ElementAt(0).Frame, NetworkProfiler.Ticks.ElementAt(NetworkProfiler.Ticks.Count - 1).Frame, 0);
            }
            else
            {
                m_Curve = AnimationCurve.Constant(0, 1, 0);
            }

            m_LastDrawn = 0;
            NetworkProfiler.Start(m_CaptureCount);
        }