using UnityEngine;
using System.Collections;

public class cc : MonoBehaviour {



    void Update () {
    
        transform.Translate (Input.acceleration.x, 0, -Input.acceleration.z);

    }
}

放在cube 裡

-------------------------------

arrow
arrow
    全站熱搜

    lkj2000168 發表在 痞客邦 留言(0) 人氣()