状态对象  ///成功还是失败  publicboolRegisterState(IStatestate)  {    if(state==null)    {      Log.Error("StateMachine.RegisterStatestateisNull!");      returnfalse;    }    if(mStateDic.ContainsKey(state.GetStateID()))    {      Log.Error("StateMachine.RegisterStatemStateDichavathiskeykey="+state.GetStateID());      return-IMDN开发者社群-imdn.cn"> 状态对象  ///成功还是失败  publicboolRegisterState(IStatestate)  {    if(state==null)    {      Log.Error("StateMachine.RegisterStatestateisNull!");      returnfalse;    }    if(mStateDic.ContainsKey(state.GetStateID()))    {      Log.Error("StateMachine.RegisterStatemStateDichavathiskeykey="+state.GetStateID());      return - IMDN开发者社群-imdn.cn">
登录
首页 » c# » unity3d 状态机

unity3d 状态机

于 2022-03-19 发布 文件大小:2.00 kB
0 117
下载积分: 2 下载次数: 1

代码说明:

有限状态机,stateMachin.cs 可以为UI 或者各种玩家,怪物添加状态,快速状态切换:   ///     /// 注册一个状态     ///     /// 状态对象     /// 成功还是失败     public bool RegisterState(IState state)     {         if (state == null)         {             Log.Error("StateMachine.RegisterState state is Null !");             return false;         }         if (mStateDic.ContainsKey(state.GetStateID()))         {             Log.Error("StateMachine.RegisterState mStateDic hava this key key = " + state.GetStateID());             return

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • Time-converter
    时间转换器,上课做的小作业,新学者可以拿来练手用(Time Turner, do little homework in class, you can try to use new scholars )
    2016-03-24 11:26:23下载
    积分:1
  • C语言经典例题100道
    说明:  C语言经典例题100道.................(100 Classic Questions in C Language)
    2020-06-21 15:40:02下载
    积分:1
  • 23个设计模式是史上公认的经典,实例代码目前多是JAVA版的,现在上传个C#版的...
    23个设计模式是史上公认的经典,实例代码目前多是JAVA版的,现在上传个C#版的-23 was designed to recognized the history of the classic examples of the current multi-source version of Java is now upload C# version of the
    2022-03-18 17:52:17下载
    积分:1
  • 基于stm32L0,DMA实现sim900任意数据长度的收发
    基于stm32L0,DMA实现sim900任意数据长度的收发 基于stm32L0,DMA实现sim900任意数据长度的收发 基于stm32L0,DMA实现sim900任意数据长度的收发
    2023-07-21 22:45:08下载
    积分:1
  • MINISTM32
    内含使用keil软件做汉字显示实验的全部代码和工程。(Containing Chinese characters using keil software to do all the code and engineering experiments.)
    2013-11-19 16:56:32下载
    积分:1
  • emd
    c语言程序编写在经验模态分解,包含三次样条(c language programming in the empirical mode decomposition, contains the cubic spline)
    2021-02-03 01:10:00下载
    积分:1
  • FUZZY_PID
    自适应模糊控制C语言代码,文件含有对PID增益的详细表述,以及模糊逻辑的模糊化、控制规则表、解模糊的详细代码。(Adaptive Fuzzy Control C language code, a detailed statement of the file containing PID gains, fuzzy logic and fuzzy control rules table, detailed code ambiguous solutions.)
    2017-04-05 18:45:02下载
    积分:1
  • HtmlVIE
    使用CHtmlView类,实现类似IE的网页浏览器,VC++经典编程学习源码,很好的参考资料。(Use the CHtmlView class, to achieve a similar IE webpage browser, VC++ classic learning programming source code, a good reference.)
    2013-11-25 13:15:31下载
    积分:1
  • C#源码,第三方控件,用于表格控制。支持字段拖动式,动态查询等特殊效果。...
    C#源码,第三方控件,用于表格控制。支持字段拖动式,动态查询等特殊效果。-C# Source, third-party control for the form control. Support field drag-style, dynamic query, such as special effects.
    2022-01-29 04:35:54下载
    积分:1
  • 19264驱动
    51底层驱动,19264驱动,写数字,写字母,写汉字,整屏幕操作,测试完全通过,可用。
    2022-08-23 19:20:33下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载