public void ItemDroppedIn(HeroSlot heroSlot) { SelectedHero = heroSlot; heroSlot.PartySlot = this; SlotAnimator.SetBool("empty", false); SlotAnimator.SetBool("marked", false); SlotAnimator.SetBool("locked", false); heroFrame.sprite = heroSlot.portrait.sprite; heroSlot.SetStatus(HeroStatus.RaidParty); if (onDropIn != null) { onDropIn(heroSlot); } }
public void ItemDroppedOut(HeroSlot heroSlot) { SelectedHero = null; heroSlot.PartySlot = null; SlotAnimator.SetBool("empty", true); SlotAnimator.SetBool("marked", false); SlotAnimator.SetBool("locked", false); heroSlot.SetStatus(HeroStatus.Available); if (onDropOut != null) { onDropOut(heroSlot); } DarkestSoundManager.PlayOneShot("event:/ui/town/character_remove"); }