示例#1
0
    //Check to hire another hero in dungeon , and start Dungeon
    private void OnHireAccept()
    {
        scrollBarValue = scrollBar.value;

        int roleIDHire = 0;

        if (hireHero.selectedSlot != null)
        {
            //if clicked Accept checkbox , then agree to hire
            if (hireHero.uiHireHero.togAcceptToHire.value)
            {
                roleIDHire = hireHero.selectedSlot.userRoleHire.Id;
            }
        }

        _controller.SendDungeonMode(roleIDHire);
    }