潜心学习,记录历程
一、地形的搭建
二、给游戏人物创建动画控制器
给每个箭头分别对应赋值:
定义人物动画状态:
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并对其进行修改使人物在摇杆的作用下移动。
。