Line of sight for enemy

This commit is contained in:
2024-09-04 17:49:40 -07:00
parent 3dffa12eb8
commit d24b28acd5
5 changed files with 32 additions and 3 deletions

View File

@@ -13,7 +13,7 @@ namespace GameJamDungeon
public InventoryOpened()
{
this.OnEnter(() => { Get<IGameRepo>().Pause(); Output(new Output.SetInventoryMode(Get<IGameRepo>().InventoryItems.Value)); });
this.OnExit(() => { Output(new Output.HideInventory()); });
this.OnExit(() => { Get<IGameRepo>().Resume(); Output(new Output.HideInventory()); });
}
public Transition On(in Input.InventoryMenuButtonPressed input) => To<Playing>();
}

View File

@@ -13,7 +13,7 @@ namespace GameJamDungeon
public MinimapOpen()
{
this.OnEnter(() => { Get<IGameRepo>().Pause(); Output(new Output.ShowMiniMap()); });
this.OnExit(() => { Output(new Output.HideMiniMap()); });
this.OnExit(() => { Get<IGameRepo>().Resume(); Output(new Output.HideMiniMap()); });
}
public Transition On(in Input.MiniMapButtonReleased input) => To<Playing>();