Пример #1
0
    public void SelectDeck(SlotInGameBattleScript _slot)
    {
        if (selectedDeck != null)
        {
            selectedDeck.SetSelectOnOff(false);
        }

        _slot.SetSelectOnOff(true);
        selectedDeck = _slot;
        TeamManagerScript.Instance.SelectUnit(_slot.UnitData);
    }
Пример #2
0
 void ReturnToDeckList(SlotInGameBattleScript _slot)
 {
     //Debug.LogError("ReturnToDeckList : " + _slot.UnitData.UnitID);
     GameUtil.SetWorldPosition(_slot.gameObject, tr_PoolParent.position);
     _slot.gameObject.SetActive(true);
     _slot.SetSelectOnOff(false);
     _slot.SetAbleClick(false);
     _slot.SetStateStay(true);
     //_slot.SetStateStay(true);
     MyDeckslots.Add(_slot);
 }