void Start() { #region Default Settings if (Application.isWebPlayer) { indexNumber = 2; UpdateSpeed = 0; } if (Application.platform == RuntimePlatform.Android) { indexNumber = 1; UpdateSpeed = 0; } if (Application.platform == RuntimePlatform.WindowsEditor) { indexNumber = 3; UpdateSpeed = 0; } else { indexNumber = 3; UpdateSpeed = 2; } #endregion visu = GetComponent<Visualiser>(); if (!visu) visuv2 = GetComponent<VisualiserV2>(); posPlay = new Rect((Screen.width / 2) - 128, (Screen.height / 2) - 128, 256, 256); UIControles.SetActive(false); UpdateSpeedText.text = "Updates per second: " + ((UpdateSpeed * 5) + 30).ToString(); }
void Start() { visu = GetComponent<Visualiser>(); if (!visu) visuv2 = GetComponent<VisualiserV2>(); }