在学习unity引擎很长一段时间之后,我想需要对引擎更加进一步理解。列出一些我认为很重要的代码,很基础,很实用。包含我个人理解,作为一些笔记。希望能够帮助到需要的人。
人物动作:
using UnityEngine;
using System.Collections;
public class AnimatorMove : MonoBehaviour {
public float DirectionDampTime = 0.25f;
private Animator animator;
// Use this for initialization
void Start () {
animator = GetComponent<Animator>();
}
// Update is called once per frame
void Update () {
//对是否得到相关的animator进行