Behavior Designer扩展
2024-08-24 15:47:49
BehaviorManager.instance.Tick(behaviorTree); 卸载update里u3d直接卡死 = =
SharedVariable直接赋值会改变他的引用关系,必须用XXX.Value赋值 = =
http://www.opsive.com/assets/BehaviorDesigner/documentation.php
两种自定义Task: Task 和 Parent Tasks
基础task流程 ( Conditional Task 和 Action Task )
Parent Tasks
// The maximum number of children a parent task can have. Will usually be 1 or int.MaxValue
public virtual int MaxChildren();
// Boolean value to determine if the current task is a parallel task
public virtual bool CanRunParallelChildren();
// The index of the currently active child
public virtual int CurrentChildIndex();
// Boolean value to determine if the current task can execute
public virtual bool CanExecute();
// Apply a decorator to the executed status
public virtual TaskStatus Decorate(TaskStatus status);
// Notifies the parent task that the child has been executed and has a status of childStatus
public virtual void OnChildExecuted(TaskStatus childStatus);
// Notifies the parent task that the child at index childIndex has been executed and has a status of childStatus
public virtual void OnChildExecuted(int childIndex, TaskStatus childStatus);
// Notifies the task that the child has started to run
public virtual void OnChildStarted();
// Notifies the parallel task that the child at index childIndex has started to run
public virtual void OnChildStarted(int childIndex);
// Some parent tasks need to be able to override the status, such as parallel tasks
public virtual TaskStatus OverrideStatus(TaskStatus status);
// The interrupt node will override the status if it has been interrupted.
public virtual TaskStatus OverrideStatus();
// Notifies the composite task that an conditional abort has been triggered and the child index should reset
public virtual void OnConditionalAbort(int childIndex);
父节点基础类ParentTask派生出装饰节点Decorator
// The maximum number of children a parent task can have. Will usually be 1 or int.MaxValue
public virtual int MaxChildren();
// Boolean value to determine if the current task is a parallel task
public virtual bool CanRunParallelChildren();
// The index of the currently active child
public virtual int CurrentChildIndex();
// Boolean value to determine if the current task can execute
public virtual bool CanExecute();
// Apply a decorator to the executed status
public virtual TaskStatus Decorate(TaskStatus status);
// Notifies the parent task that the child has been executed and has a status of childStatus
public virtual void OnChildExecuted(TaskStatus childStatus);
// Notifies the parent task that the child at index childIndex has been executed and has a status of childStatus
public virtual void OnChildExecuted(int childIndex, TaskStatus childStatus);
// Notifies the task that the child has started to run
public virtual void OnChildStarted();
// Notifies the parallel task that the child at index childIndex has started to run
public virtual void OnChildStarted(int childIndex);
// Some parent tasks need to be able to override the status, such as parallel tasks
public virtual TaskStatus OverrideStatus(TaskStatus status);
// The interrupt node will override the status if it has been interrupted.
public virtual TaskStatus OverrideStatus();
// Notifies the composite task that an conditional abort has been triggered and the child index should reset
public virtual void OnConditionalAbort(int childIndex);
最新文章
- spring batch资料收集
- 联想笔记本如何开启笔记本的VT-x虚拟化技术功能
- mave web常用配置文件参数
- 我的c++学习(4) C++输入输出格式的控制
- TYVJ P1048 田忌赛马 Label:dp
- win8商店应用验证,二进制文件是在调试模式下生成的解决方案。
- java与JSTL库
- vmvare虚拟机经验
- NOIP2014-7-7模拟赛
- oracle 12 c 创建表空间,用户名,及表
- java学习笔记19(Arrays类)
- redis-storage介绍[转]
- Javascript中的垃圾回收机制
- 微信小程序《沈航二手书》
- Android逆向-Android基础逆向7(内购干货集合)
- Scala学习——Scala By Example——to be continued
- webpack之傻瓜式教程及前端自动化入门
- 多线程Worker初尝试
- jQuery 技术揭秘
- TFS 中工作项的定制-修改工作流
热门文章
- Android 各大网络请求库的比较及实战
- LOJ #6009 「网络流 24 题」软件补丁
- zabbix部署-版本3.2.6
- Python关于导入模块的一些感想:
- 1002 A+B for Polynomials (PAT (Advanced Level) Practice)
- 【10】AngularJS SQL
- hdu poj KMP简单题目总结
- [K/3Cloud] 首页增加一个自定义页签及页面内容
- jd-eclipse插件的安装
- Centos7 上安装mysql遇上的问题:mysql无法正常启动