完整脚本及实验模型,请下载后查看
plaermove.cs脚本
using UnityEngine;
using System.Collections;
public class plaermove : MonoBehaviour {
public float velocity = 500000;
private Animator anim;
// Use this for initialization
void Start () {
anim = this.GetComponent<Animator>();
}
// Update is called once per frame
void Update () {
float h = Input.GetAxis("Horizontal");
float v = Input.GetAxis("Vertical");
Vector3 nowVel = rigidbody.velocity;
......
完整脚本及实验模型,请下载后查看
diy体验 © 版权- 鲁ICP备17006985号-1