zhenmu

Results 7 comments of zhenmu

一个类型调用另外一个类型的功能? 感觉不太支持,子树也不能支持吧?(不知道新版本改了没。) 我们目前遇到这种情况: 方案1. 注册一个全局实例,参考:http://www.behaviac.com/tutorial_3_agent_instance/ 方案2. 行为树这边只维护一个类型 比如叫 ObjAgent, 所有怪物、npc、角色用到的AI接口都在这里实现,具体实现逻辑根据类型不同实现(有些接口逻辑是一样的。)。 具体实例化对象时,怪物、npc、角色类里面创建一个ObjAgent对象,赋给它不同的行为树,然后run里定时调用 objAgent的exec()

我们是一般打包时 仍旧放在Resources下, 思路就是:重载 behaviac.FileManager、先去找热更目录有没有这个xml, 有就加载外部文件,没有就直接按原来方式去Resources目录加载。 根据 http://www.behaviac.com/tutorial_10_extent_filemanager/ 重写了一个MyBehaviacFileManager ``` public class MyBehaviacFileManager : behaviac.FileManager { public override byte[] FileOpen(string filePath, string ext) { bool in_out = false; //这个有点鸡肋 //思路:检测热更目录下是否有对应文件,存在则优先读取, 否则仍旧读取Resources...

> Hi Is it possible to do NFT crowdsale using Polygon? Like on Rinkeby with this manual: https://docs.opensea.io/docs/2-custom-item-sale-contract > > I did a crowd sale using Rinkeby and testnets.opensea.com. After...

same problems. Finally, I added the function: function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) such as: ``` /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual...

@cp790621656 我看了一下我们项目里完整的修改 1.encoder.lua > function _VarintSize(value) > if value if value if value if value return 5 > end > > function _SignedVarintSize(value) > if value < 0 then return...

> > 最大支持50位。 > > 为什么最大是50位呀,哪里有限制的呢,不是真的int64呢 lua存放数值这类的都是用double的

same problems. Finally, I added the function: function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) such as: ``` /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual...