using UnityEngine; using UnityEngine.UI; using System.Collections; public class SpinningCube : MonoBehaviour { //Playerdata -- Needs saved public float currentSpeed = 20f; public float currentIncrement = 20f; public float rotationPerSec = 0.0f; private string RotationDirection = "Up"; private Vector3 m_RotationDirection = Vector3.up; private Vector3 rotationOrigin; private Vector3 stopRotation = Vector3.zero; private Vector3 tempRotation; private float angle2 = 0; private float angledif, angle1; private float angleSum = 0; [SerializeField] private float secPerRotation = 0.0f; [SerializeField] private float lastRPS = 0.0f; [SerializeField] private float secondsPassed = 0.0f; [SerializeField] private int rotations; public void Start() { /* if(GameObject.Find("Rotation Panel").activeSelf) { GameObject.Find("Rotation Direction Button").GetComponent