// Update is called once per frame void Update() { if (CanRotate == true) { this.gameObject.transform.Rotate(new Vector3(_X, _Y, _Z) * Time.deltaTime); } Debug_Console.Log("Current Rotation = " + this.gameObject.transform.rotation.eulerAngles); }
void Awake() { i = this; this.text_o = GetComponent<Text>(); }