Skip to content

Commit

Permalink
fix using base game static field instead of custom
Browse files Browse the repository at this point in the history
  • Loading branch information
misternebula committed May 4, 2024
1 parent 95f6e20 commit fee41f5
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ public override void OnArriveAtPosition()
{
_controller.SetLanternConcealed(false, true);
_controller.ChangeLanternFocus(1f, 2f);
_controller.FaceNodeList(IdentifyIntruderAction.s_nodesToSpotlight, num, TurnSpeed.MEDIUM, 1f, false);
_controller.FaceNodeList(s_nodesToSpotlight, num, TurnSpeed.MEDIUM, 1f, false);
return;
}
}
Expand Down Expand Up @@ -291,9 +291,9 @@ private int GenerateSpotlightList(GhostNode node, Vector3 ignoreDirection)
{
if (Vector3.Angle(node.neighbors[i].localPosition - localPosition, ignoreDirection) >= 45f)
{
IdentifyIntruderAction.s_nodesToSpotlight[num] = node.neighbors[i];
s_nodesToSpotlight[num] = node.neighbors[i];
num++;
if (num == IdentifyIntruderAction.s_nodesToSpotlight.Length)
if (num == s_nodesToSpotlight.Length)
{
break;
}
Expand Down

0 comments on commit fee41f5

Please sign in to comment.