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()); } }
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()); } }