Skip to content

Commit

Permalink
Fix build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
0x7c13 committed Oct 22, 2023
1 parent bdcb7fa commit 778c33a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ public sealed class ThreePhaseSwitchObject : SceneObject,
private readonly SceneStateManager _sceneStateManager;

// State is either -1, 0 or 1 (0 is the default state)
// -1 means the switch is in the left position
// 1 means the switch is in the right position
private int _previousState;
private int _currentState;

Expand Down Expand Up @@ -96,7 +98,7 @@ public override IEnumerator InteractAsync(InteractionContext ctx)
if (ctx.StartedByPlayer && ctx.InitObjectId == ObjectInfo.Id)
{
Pal3.Instance.Execute(new ActorStopActionAndStandCommand(ActorConstants.PlayerActorVirtualID));
Pal3.Instance.Execute new PlayerActorLookAtSceneObjectCommand(ObjectInfo.Id));
Pal3.Instance.Execute(new PlayerActorLookAtSceneObjectCommand(ObjectInfo.Id));
Pal3.Instance.Execute(new ActorPerformActionCommand(ActorConstants.PlayerActorVirtualID,
ActorConstants.ActionToNameMap[ActorActionType.Check], 1));

Expand Down

0 comments on commit 778c33a

Please sign in to comment.