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; public string RotationDirection = "Up"; public Vector3 m_RotationDirection = Vector3.up; public Vector3 rotationOrigin; public Vector3 stopRotation = Vector3.zero; public Vector3 tempRotation; public float angle2 = 0; public float angledif, angle1; public float angleSum = 0; [SerializeField] public float secPerRotation = 0.0f; [SerializeField] public float lastRPS = 0.0f; [SerializeField] public float secondsPassed = 0.0f; [SerializeField] public int rotations; public void Start() { /* if(GameObject.Find("Rotation Panel").activeSelf) { GameObject.Find("Rotation Direction Button").GetComponent