ItemSlotsGrid.cs 498 B

12345678910111213141516171819202122
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.UI;
  5. namespace SoftKitty.InventoryEngine
  6. {
  7. public class ItemSlotsGrid : MonoBehaviour
  8. {
  9. void Awake()
  10. {
  11. if (GetComponent<GridLayoutGroup>() && InventorySkin.instance != null)
  12. {
  13. GetComponent<GridLayoutGroup>().cellSize *= InventorySkin.instance.InventorySlotScale;
  14. }
  15. }
  16. }
  17. }