Beispiel #1
0
        public void OnSelectSlot(BlockSlot_Menu Slot)
        {
            if (m_SelectedSlot != null)
            {
                //swap blocks
                IBlock temp = m_SelectedSlot._Block;
                m_SelectedSlot.SetBlock(Slot._Block);
                Slot.SetBlock(temp);


                m_SelectedSlot.DisSelect();
                Slot.DisSelect();
            }
            else
            {
                m_SelectedSlot = Slot;
                Slot.GetComponent <Image>().color = m_SelectedColor;
            }
        }
Beispiel #2
0
 public void DisselectSlot(BlockSlot_Menu Slot)
 {
     m_SelectedSlot = null;
     Slot.GetComponent <Image>().color = m_UnselectedColor;
 }