Beispiel #1
0
        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();
        }
Beispiel #2
0
 void Start()
 {
     visu = GetComponent<Visualiser>();
     if (!visu)
         visuv2 = GetComponent<VisualiserV2>();
 }