at GAMEDEV
- 暇つぶし2ch239:名前は開発中のものです。
17/04/12 18:23:56.52 dUpGEo9D.net
↓の記述をスマホ対応に変えたいのですがどのように記述すればいいでしょうか?
色々調べたりアセットを試したのですが良く分からないレベルの初心者です
private void FixedUpdate(){
float moveHorizontal = Input.GetAxis("Horizontal");
float moveVertical = Input.GetAxis("Vertical");
Vector2 movement = new Vector2(moveHorizontal, moveVertical);
rb2d.AddForce(movement * speed);
}
void Update(){
float x = Input.GetAxisRaw("Horizontal");
Vector3 scale = transform.localScale;
if (x >= 0){
scale.x = 1;
}
else{
scale.x = -1;
}


次ページ
続きを表示
1を表示
最新レス表示
レスジャンプ
類似スレ一覧
スレッドの検索
話題のニュース
おまかせリスト
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch