Giter Site home page Giter Site logo

mybehaviortree's Introduction

MyBehaviorTree

2016-09-15 初始版本

2016-09-15 修改编辑器显示样式

2016-09-16 增加树管理器

使用方法:树文件继承BAIBehaviorTree,实现Init方法做一些初始化工作 BAIBehaviorTree: 字段: AIName:当前AI的名字,暂时没用 AITreeText:行为树文件 AITreeName:树名称,一个树文件可包含多个树 Interval:执行间隔时间 IsRun:是否运行AI RunEnum:在哪里运行 StartTime:开始时间,游戏开始后多少秒后开始运行AI,默认为0 MyData:AI运行是否传递的参数,可为空 方法: Excute():手动执行AI,不推荐 StopAI():停止当前AI StartAI():开始当前AI 如何生成树文件: 行为继承BNodeAction 条件继承BNodeCondition 特性: BField:需要显示出来的字段,不想公开又想让策划配置:ShowName:在编辑器中显示的名字 BClass:行为树类上面作为注释可在编辑器中显示:ShowName:在编辑器中显示的名字 BHideField:公开属性,不想让策划看到

Todo:增加树的全局变量 修改Node获取Unity变量方式

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.