Пример #1
0
 public GridSlot(GameObject go, GridSlotManager.GridSlotType type, SpriteRenderer srend, BoxCollider coll)
 {
     game_object     = go;
     sprite_renderer = srend;
     collider        = coll;
     slot_type       = type;
 }
Пример #2
0
        public void SetGridType(GridSlot slot, GridSlotManager.GridSlotType new_type)
        {
            if (slot != null)
            {
                slot.SetSlotType(new_type);

                if (new_type == GridSlotManager.GridSlotType.GST_NO_INTERACTABLE)
                {
                    slot.GetSpriteRenderer().enabled = false;
                }
                else if (new_type == GridSlotManager.GridSlotType.GST_INTERACTABLE)
                {
                    slot.GetSpriteRenderer().enabled = true;
                }
            }
        }
Пример #3
0
 public void SetSlotType(GridSlotManager.GridSlotType type)
 {
     slot_type = type;
 }