--欢迎访问diy体验

把fbx导入到unity,用上下左右键控制动画切换

价格:10.00元 文件大小:6.98MB 文件格式:rar 上传时间:2024-08-04 16:51:30     

完整脚本及实验模型,请下载后查看

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

电话咨询
打开微信