20.Unity3D商业游戏源码研究-变身吧主公-战斗-MainPlayerStateIdle

版权声明:欢迎转载,转载请注明原博客链接: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()
    {
    }
}

猜你喜欢

转载自blog.csdn.net/u013108312/article/details/70313210