Skip to main content

setBypass 设置绕开角色开关

setBypass

类型: MethodDeclaration

所属类: SceneDirectLightRenderer

定义位置: scene.ts

描述

设置绕开角色开关

参数 bypass: 是否绕开角色

参数

参数名类型描述默认值
bypassboolean--

返回值

类型: void

源代码

位置: 第 6317 行

private setBypass(bypass: boolean): void {
switch (bypass) {
case false:
this.calculateExtraCostBetween = PathFinder.normalCalculateExtraCostBetween
this.isInLineOfSight = PathFinder.normalIsInLineOfSight
break
case true:
this.calculateExtraCostBetween = PathFinder.bypassCalculateExtraCostBetween
this.isInLineOfSight = PathFinder.bypassIsInLineOfSight
break
}
}

文档生成时间:2025/7/7 12:07:06