API 参考actor 模块exists 判断角色是否存在目标On this pageexists 判断角色是否存在目标exists 类型: MethodDeclaration 所属类: TargetManager 定义位置: actor.ts 描述 判断角色是否存在目标 返回值 类型: boolean 源代码 位置: 第 5390 行 public exists(): boolean { return this.targets.length !== 0; } 文档生成时间:2026/2/1 16:51:38