版权声明:欢迎转载,转载请注明原博客链接:http://blog.csdn.net/u013108312 和本文章的链接。谢谢合作。作者:CircleGood https://blog.csdn.net/u013108312/article/details/70313210
using UnityEngine;
using System.Collections;
public class MainPlayerStateIdle : StateBase
{
public MainPlayerStateIdle(PlayerBase player)
: base(player)
{
}
public override uint GetStateID()
{
return StateDef.idle;
}
public override void OnEnter(StateMachine machine, IState prevState, object param1, object param2)
{
mPlayer.Play("idle");
}
public override void OnLeave(IState nextState, object param1, object param2)
{
}
public override void OnUpate()
{
}
public override void OnFixedUpdate()
{
}
public override void OnLeteUpdate()
{
}
}