public GridSlot(GameObject go, GridSlotManager.GridSlotType type, SpriteRenderer srend, BoxCollider coll) { game_object = go; sprite_renderer = srend; collider = coll; slot_type = type; }
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; } } }
public void SetSlotType(GridSlotManager.GridSlotType type) { slot_type = type; }