InterposeBehavior.weight
用于返回该行为的默认权重。
InterposeBehavior.weight
返回值为一个数字,表示该行为的默认权重。默认权重越大,代表该行为的优先级越高。
const interpose = new Yuka.InterposeBehavior();
console.log(interpose.weight); // 2
在上述示例中,InterposeBehavior
对象实例化后,调用 weight
属性可以返回默认权重值为 2。