Passion & UI
This commit is contained in:
@@ -22,7 +22,7 @@ namespace Cielonos.MainGame.Characters.AI
|
||||
}
|
||||
|
||||
[NodeIcon("Assets/Sprites/Icon/Dice.png")]
|
||||
[Opsive.Shared.Utility.Description("类似于 RandomSelector(随机选择器),但允许为其每个子节点配置不同的出现权重。权重越大的节点越容易被优先执行。\n如果有节点返回 Failure,会依据排好的权重顺序继续尝试下一个节点。\n如果所有子节点的权重加起来全都是 0,将退化为均匀随机分布。")]
|
||||
[Description("类似于 RandomSelector(随机选择器),但允许为其每个子节点配置不同的出现权重。权重越大的节点越容易被优先执行。\n如果有节点返回 Failure,会依据排好的权重顺序继续尝试下一个节点。\n如果所有子节点的权重加起来全都是 0,将退化为均匀随机分布。")]
|
||||
[Category("Cielonos")]
|
||||
public class WeightedSelector : ECSCompositeTask<WeightedSelectorTaskSystem, WeightedSelectorComponent, WeightedSelectorFlag>, IParentNode, IConditionalAbortParent, IInterruptResponder, ISavableTask, ICloneable
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user