Fix build issue

This commit is contained in:
Jiaqi Liu committed 2023-10-21 20:50:55 -07:00
1 parent bdcb7fa784
commit 778c33a246
1 file changed
+3 -1
@@ -39,6 +39,8 @@ namespace Pal3.Game.Scene.SceneObjects
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;
@@ -96,7 +98,7 @@ namespace Pal3.Game.Scene.SceneObjects
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));