Unity制作王者荣耀笔记(一)

一、地形的搭建

二、给游戏人物创建动画控制器

 给每个箭头分别对应赋值:

定义人物动画状态:

using UnityEngine;
using System.Collections;

public class AnimState : MonoBehaviour {
    //常量定义人物动画状态
    public const int IDLE = 0;
    public const int RUN = 1;
    public const int ATTACK1 = 2;
    public const int ATTACK2 = 3;
    public const int DANCE = 4;
	
}

 

三、EasyTouch的使用:控制人物移动

 (1)、给人物添加上虚拟摇杆插件自带的移动脚本MoveController.cs并对其进行修改使人物在摇杆的作用下移动。

扫描二维码关注公众号,回复: 8664528 查看本文章

发布了122 篇原创文章 · 获赞 13 · 访问量 2万+

猜你喜欢

转载自blog.csdn.net/qq_40229737/article/details/103563103
今日推荐