zoukankan      html  css  js  c++  java
  • Behavior Designer扩展

    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
    1. // The maximum number of children a parent task can have. Will usually be 1 or int.MaxValue
    2. public virtual int MaxChildren();
    3. // Boolean value to determine if the current task is a parallel task
    4. public virtual bool CanRunParallelChildren();
    5. // The index of the currently active child
    6. public virtual int CurrentChildIndex();
    7. // Boolean value to determine if the current task can execute
    8. public virtual bool CanExecute();
    9. // Apply a decorator to the executed status
    10. public virtual TaskStatus Decorate(TaskStatus status);
    11. // Notifies the parent task that the child has been executed and has a status of childStatus
    12. public virtual void OnChildExecuted(TaskStatus childStatus);
    13. // Notifies the parent task that the child at index childIndex has been executed and has a status of childStatus
    14. public virtual void OnChildExecuted(int childIndex, TaskStatus childStatus);
    15. // Notifies the task that the child has started to run
    16. public virtual void OnChildStarted();
    17. // Notifies the parallel task that the child at index childIndex has started to run
    18. public virtual void OnChildStarted(int childIndex);
    19. // Some parent tasks need to be able to override the status, such as parallel tasks
    20. public virtual TaskStatus OverrideStatus(TaskStatus status);
    21. // The interrupt node will override the status if it has been interrupted.
    22. public virtual TaskStatus OverrideStatus();
    23. // Notifies the composite task that an conditional abort has been triggered and the child index should reset
    24. public virtual void OnConditionalAbort(int childIndex);

    父节点基础类ParentTask派生出装饰节点Decorator
    1. // The maximum number of children a parent task can have. Will usually be 1 or int.MaxValue
    2. public virtual int MaxChildren();
    3. // Boolean value to determine if the current task is a parallel task
    4. public virtual bool CanRunParallelChildren();
    5. // The index of the currently active child
    6. public virtual int CurrentChildIndex();
    7. // Boolean value to determine if the current task can execute
    8. public virtual bool CanExecute();
    9. // Apply a decorator to the executed status
    10. public virtual TaskStatus Decorate(TaskStatus status);
    11. // Notifies the parent task that the child has been executed and has a status of childStatus
    12. public virtual void OnChildExecuted(TaskStatus childStatus);
    13. // Notifies the parent task that the child at index childIndex has been executed and has a status of childStatus
    14. public virtual void OnChildExecuted(int childIndex, TaskStatus childStatus);
    15. // Notifies the task that the child has started to run
    16. public virtual void OnChildStarted();
    17. // Notifies the parallel task that the child at index childIndex has started to run
    18. public virtual void OnChildStarted(int childIndex);
    19. // Some parent tasks need to be able to override the status, such as parallel tasks
    20. public virtual TaskStatus OverrideStatus(TaskStatus status);
    21. // The interrupt node will override the status if it has been interrupted.
    22. public virtual TaskStatus OverrideStatus();
    23. // Notifies the composite task that an conditional abort has been triggered and the child index should reset
    24. public virtual void OnConditionalAbort(int childIndex);







  • 相关阅读:
    数据分析项目补充:医院药品销售数据分析
    会计实务会计分录——资产之流动资产篇
    HTTP请求过程和状态响应码
    网络爬虫深究-初识HTTP和https常识
    数字分析之一元线性回归及多元线性回归
    Navicat15激活(仅供学习使用,严禁任何商业用途)
    pandas补充(其二)与matplotlib补充
    pandas模块补充
    阿里云ecs服务器公网ip除了能telnet通22端口,其他如tomcat的8080端口telnet不通,原来需要添加安全组规则
    maven依赖里redis的依赖spring-boot-starter-data-redis和spring-boot-starter-redis有什么区别?
  • 原文地址:https://www.cnblogs.com/Hichy/p/6755461.html
Copyright © 2011-2022 走看看