Exemplo n.º 1
0
    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);
    }
Exemplo n.º 2
0
    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);
        }
    }
Exemplo n.º 3
0
    public void OnHallSectorExit(HallSector sector)
    {
        RaidMapHallSectorSlot slot = HallSlots[sector.Hallway.Id].RaidMapHallSectorSlots.Find(item => item.Sector.Id == sector.Id);

        slot.UpdateSector();
    }