Ejemplo n.º 1
0
 protected override void UpdateEx(float interval)
 {
     base.UpdateEx(interval);
     if (_fpsInfo == null)
     {
         return;
     }
     _fpsInfo.UpdateFps(Time.deltaTime, Time.unscaledDeltaTime);
     if (Input.GetKeyDown(KeyCode.D) && _showType == ShowType.ShowNon)
     {
         SetShowType(ShowType.ShowFps);
     }
     if (Input.GetKeyDown(KeyCode.F4) && _showType != ShowType.ShowNon)
     {
         SetShowType(ShowType.ShowNon);
     }
 }