//~~~~~~~~~~~~~~~~~~~~~~ UPDATE ~~~~~~~~~~~~~~~~~~~~~ // Update is called once per frame void FixedUpdate() { if (ModelComponentViewerManager.globalAutoRotation == true) { if (cooldown.engage == true) { AutoRotateFunction(); } if (autoRotation == true && Input.touchCount <= 0) { AutoRotateFunction(); } else { autoRotationEngaged = false; } } if (Input.touchCount > 0) { /*foreach(HotSpotScript hotspot in hotspots) * { * hotspot.UIAlphaFunctionOff(); * }*/ TouchFunction(Input.GetTouch(0).position); counter++; autoRotation = false; } cooldown.CooldownCounterFunction(); DetectRotationFunction(); }