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

  • tcp/udp
    TCP (Transmission Control Protocol)和UDP(User Datagram Protocol)协议属于传输层协议。其中TCP提供IP环境下的数据可靠传输,它提供的服务包括数据流传送、可靠性、有效流控、全双工操作和多路复用。通过面向连接、
    2022-03-28 20:15:53下载
    积分:1
  • cyc_pulse
    基于stm32的定时器中断应用,可产生相位差为90度的两路周期性脉冲,可用于模拟正交编码器脉冲(Stm32 timer interrupt based applications can generate a phase difference of 90 degrees two periodic pulse, can be used for analog quadrature encoder pulse)
    2014-08-13 13:54:16下载
    积分:1
  • C-Technique
    C语言是一种计算机程序设计语言,它既具有高级语言的特点,又具有汇编语言的特点。它的功能性非常强大,目前是各高校的一门必修课。并且市场上许多软件也是基于C语言的平台而产生的,所以C语言在大学中的教学也称得上是"不遗余力"。但是近些年很多的学生普遍反映C语言晦涩难懂,不容易学透,非常努力的学最后却得不能心满意足,课程过后一无所获,甚至一个小小的程序都写不出来,于是针对这些情况就做出一些初步的分析,并且从C语言编程技巧上提出相关的改善对策。 (C language is a computer programming language, both with advanced language features, but also has characteristics of assembly language. Its function is very powerful, is now a required course in colleges and universities. And also a lot of software on the market based on the C language, platform and produce, so C language teaching at the university is also described as a "spare no effort." But in recent years, a lot of students generally reflect the C language obscure, not easy to learn thoroughly, very hard to learn, but finally could not have satisfied the course after nothing, even a small program that can not write, so for these situations to to make some preliminary analysis, and from the C programming language skills relevant improvement measures put forward.)
    2013-10-08 20:40:35下载
    积分:1
  • MVB_PD
    qnx下dugon d013L mvb协议驱动(MVB drivers of dugon d013L on QNX platform)
    2021-02-20 16:29:43下载
    积分:1
  • a sample of student record management system
    a sample of student record management system
    2022-01-26 03:50:36下载
    积分:1
  • White-Noise
    对系统辨识中白噪声信号的加入影响的分析,并进行在线辨识。(Identification of the system by adding white noise analysis of the impact of )
    2011-07-09 22:15:47下载
    积分:1
  • Answer-true-through-IT-students
    这是一部写给在校计算机专业学生的书 如果没有看到这本书 你可能会茫然无措的度过学习阶段(This is a book written for computer major students If you don t see this book You may be at sea through the learning phase)
    2013-08-05 17:28:15下载
    积分:1
  • snoc017
    ti公司电弧检测板原理图及使用说明,主要利用时频域特征检测电弧(TI company arc detection board schematic and instructions for use)
    2016-08-01 15:12:39下载
    积分:1
  • 797687687
    基于MSP430G2553来实现串口通讯,可以用上位机和下位机进行通讯(Based MSP430G2553 to achieve serial communication, you can use upper and lower machine communication)
    2014-05-25 20:07:16下载
    积分:1
  • 基于QT的扫雷源码
    基于QT的扫雷游戏,所有基本功能实现,且有界面形成特效
    2022-01-21 01:07:40下载
    积分:1
  • 696518资源总数
  • 105559会员总数
  • 1今日下载