public void SetCurrentIndicator(DungeonRoom room) { if (LastHallwaySector != null) { LastHallwaySector.RemoveIndicator(hallIndicator); LastHallwaySector = null; } if (LastCurrentRoom != null) { LastCurrentRoom.animator.SetBool("IsCurrent", false); } LastCurrentRoom = RoomSlots[room.Id]; LastCurrentRoom.animator.SetBool("IsCurrent", true); }
public void SetCurrentIndicator(HallSector hallsector) { if (LastCurrentRoom != null) { LastCurrentRoom.animator.SetBool("IsCurrent", false); LastCurrentRoom = null; } if (LastHallwaySector != null) { LastHallwaySector.RemoveIndicator(hallIndicator); } LastHallwaySector = HallSlots[hallsector.Hallway.Id].RaidMapHallSectorSlots.Find(item => item.Sector.Id == hallsector.Id); if (LastHallwaySector != null) { LastHallwaySector.SetIndicator(hallIndicator); } }
public void OnHallSectorExit(HallSector sector) { RaidMapHallSectorSlot slot = HallSlots[sector.Hallway.Id].RaidMapHallSectorSlots.Find(item => item.Sector.Id == sector.Id); slot.UpdateSector(); }