【3Dゲームエンジン】Unity質問スレッド25at GAMEDEV
【3Dゲームエンジン】Unity質問スレッド25 - 暇つぶし2ch724:名前は開発中のものです。
16/07/24 14:36:18.89 8G5XycUJ.net
void Start () {

anim = GetComponent<Animator>();

}

// Update is called once per frame
void Update () {
if (Input.GetKey("right"))
{
transform.position += transform.forward * 0.1f;
anim.SetBool("Run", true);
}
else
{
anim.SetBool("Run", false);
}
if (Input.GetKey("left"))
{
transform.position -= transform.forward * 0.1f;
anim.SetBool("Run", true);
}
else
{
anim.SetBool("Run", false);
}



}
}


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