コード例 #1
0
    // 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);
    }
コード例 #2
0
 void Awake()
 {
     i = this;
     this.text_o = GetComponent<Text>();
 }