Sun Quan
Sun Quan
what if i want to change cooldown = 6, during running? how can we change parameters of decorator in runtime?
thanks a lot. it really helps. but i am thinking another fancy one. i am think of how to make it happen in `BehaviorTreeImporter` . i am writing a condition...
Thanks a lot @Calamari Your solution is better than mine because you are thinking with a train ride, while i am thinking hard when lying in bed :) You cleverly...
i will once i finished my game. :)
@Calamari thanks for your reply. i just found that i cannot require the decorators in a directly way `const {InvertDecorator} = require('behaviortree');` `console.log(InverDecorator) //undefined` but anyway, i found i can...
·Property 'zeroValue' has no initializer and is not definitely assigned in the constructor.ts(2564)` 这个例子有问题啊
刚才查了下,官方文档也是错的,在stackoverflow上找到了答案 ``` class GenericNumber { // to get rid of error, you can define constructor // which takes [zeroValue] and [add] as arguments constructor(public zeroValue: T, public add: (x: T,...
`import { name, getName, Animal, Directions, Options } from 'foo';` 在这个案例中,我按照教程的目录结构,以及拷贝相同代码,还有`tsconfig.json` ,结果运行报错: `Error: Cannot find module 'foo'`
it is solved,because previously i only include state-machine.js rather than the folder.
It is just a demo that shows my questions. my suggestion is that there should be some function that can force state transition although it is still in progress. and...