public IEnumerator RotateModel(Collider other) { yield return(new WaitForSeconds(.617f)); GameObject rotateLight = new GameObject("RotateLight"); VRButtonFuncs.RotateComponents(other, isRotating); isRotating = !isRotating; }
// DEPRECATED -- Moved from physical button to panel on the screen public void RotateClick(Collider other) { if (other.name != "Button") { return; } new GameObject("RotateLight"); VRButtonFuncs.RotateComponents(other, isRotating); isRotating = !isRotating; }