###前提・実現したいこと
unityでunityちゃんを使った障害物避けゲームを作っています。
ジャンプで障害物を避けるようなことをしたいんですが
ジャンプモーションした時の当たり判定がunityちゃんに
ついてこなくて困っています。
どうしたらいいですか。
###発生している問題・エラーメッセージ
特になし。
エラーメッセージ
###該当のソースコード public class unitychan : MonoBehaviour { private Animator animator; float x = 0.0f; float y = 0.0f; void Start () { animator = GetComponent<Animator>(); } void Update() { //左 if (Input.GetMouseButton(0)) { x = 0; x -= 0.1f; transform.Rotate(0, 0, 0); animator.SetBool("is_running", true); transform.Translate(x, 0, 0); } //右 if (Input.GetMouseButton(1)) { x = 0; x += 0.1f; animator.SetBool("is_running", true); transform.Translate(x, 0, 0); } //中央 if (Input.GetMouseButton(2)) { animator.SetTrigger("is_jump"); } } } ###試したこと 特になし ###補足情報(言語/FW/ツール等のバージョンなど) C#

回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/06/13 04:33