状态对象  ///成功还是失败  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 128
下载积分: 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 个回复

  • opt-controller
    串口通讯,optdell引用,打开光源并设置曝光亮度(Serial communication, optdell reference, open the light source and set the exposure brightness)
    2017-09-07 22:39:04下载
    积分:1
  • ColorImageHistogram
    彩色直方图(matlab),可以直接求出rgb图像的直方图(Color histogram (matlab))
    2009-05-20 09:46:01下载
    积分:1
  • 1
    说明:  opencv实现的运动目标估计算法,通过三帧差法实现(Three frame difference moving target opencv achieve estimated)
    2013-12-17 10:27:30下载
    积分:1
  • websocket 服务端以及客户端(c++源码)
    【实例简介】c websocket 
    2021-05-24 08:46:53下载
    积分:1
  • AI智能机器人算法
    点击发货就看都看不见会计考试地方很近的那款吗巴萨铠甲就就发大师傅艰苦不打算看机会是积分的奶粉就是放假啊看姐夫你空间萨芬年就开始分局就哦电费缴费的手机能发
    2022-03-09 20:31:56下载
    积分:1
  • MFC-tab
    MFC中的TAB控件实例编程,带TAB图标(The TAB control instance in the MFC programming with TAB ICONS)
    2021-04-20 15:08:50下载
    积分:1
  • P&O
    说明:  使用扰动观察法的Simulink光伏仿真,可供参考(Simulink photovoltaic simulation with disturbance observation method can be used for reference.)
    2021-04-17 15:38:52下载
    积分:1
  • DemoMPC5646C_-KEYaLED
    基于MPC5646CF0MLU1单片机的LED测试程序(LED Test Program Based on MPC5646CF0MLU1 Single Chip Microcomputer)
    2017-03-13 15:31:41下载
    积分:1
  • 红外线遥控Proteus仿真电路+发射+接收程序
    基于单片机控制平台的用于红外无线遥控控制编码(Infrared wireless remote control coding based on SCM control platform)
    2018-05-03 14:43:42下载
    积分:1
  • OpenProtocol_Specification_通讯
    说明:  拧紧机对外提供的接口, Atlas Copco Tools and Assembly Systems(Interface provided by tightening machine)
    2019-06-19 15:04:24下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载