private void Awake() { if (_instance != null && _instance != this) { Destroy(this); } else { _instance = this; } // CAP LE FPS A 60 FPS if (_CheckCurrentPlatform.platform == RuntimePlatform.Android || _CheckCurrentPlatform.platform == RuntimePlatform.IPhonePlayer) { Application.targetFrameRate = 60; QualitySettings.vSyncCount = 0; platform = Platform.Mobile; } else { platform = Platform.PC; swipeMinimalDistance /= 3; } audioSource.clip = _AudioManager.instance.Selection; }
private void Awake() { if (_instance != null && _instance != this) { Destroy(this); } else { _instance = this; } // CAP LE FPS A 60 FPS if (Application.isMobilePlatform == true) { Application.targetFrameRate = 60; QualitySettings.vSyncCount = 0; platform = Platform.Mobile; } else { platform = Platform.PC; } }