We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Acceleration所回傳的數值是一個三維向量Vector3 也就是一個XYZ的組合
當手機的傾斜大於一定值讓角色左右移動
if(Input.acceleration.x > this.threshold) key = 1; if(Input.acceleration.x < -this.threshold) key = -1;
前面先宣告float threshold = 0.2f;
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Acceleration所回傳的數值是一個三維向量Vector3
也就是一個XYZ的組合
當手機的傾斜大於一定值讓角色左右移動
前面先宣告float threshold = 0.2f;
The text was updated successfully, but these errors were encountered: