Beispiel #1
0
        protected virtual void OnGUI()
#endif
        {
            if (ShowFps)
            {
                if (RenderWatcher == null)
                {
                    RenderWatcher = new FpsWatcher(0.95f);
                }
                RenderWatcher.OnUIUpdate();
            }

            UpdateEvent?.Invoke();
            float time = Time.time;

            if (time > time_update_per1s)
            {
                time_update_per1s = time + 1.0f;
                UpdatePer1sEvent?.Invoke();
            }
            if (time > time_update_per300ms)
            {
                time_update_per300ms = time + 0.3f;
                UpdatePer300msEvent?.Invoke();
            }
        }
Beispiel #2
0
        protected virtual void OnGUI()
#endif
        {
            if (ShowFps)
            {
                if (RenderWatcher == null)
                {
                    RenderWatcher = new FpsWatcher(0.95f);
                }
                RenderWatcher.OnUIUpdate();
            }
        }
Beispiel #3
0
        protected virtual void OnGUI()
#endif
        {
            if (ShowFps)
            {
                if (RenderWatcher == null)
                    RenderWatcher = new FpsWatcher(0.95f);
                RenderWatcher.OnUIUpdate();
            }
        }