Exemplo n.º 1
0
 public void ToggleFPS()
 {
     if (FpsToggle.isOn)
     {
         PlayerPrefs.SetInt("canShowFPS", 1);
         FC.canShowFPS = true;
         StartCoroutine(FC.FPS());
     }
     else
     {
         PlayerPrefs.SetInt("canShowFPS", 0);
         FC.canShowFPS = false;
         StopCoroutine(FC.FPS());
     }
 }