コード例 #1
0
 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);
     }
 }
コード例 #2
0
    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");
    }