Newer
Older
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class DisplayScrolls : MonoBehaviour
{
//public Inventory inventory;
public int x_Start;
public int y_Start;
public int X_Pacece_Between_Items;
public int y_Pacece_Between_Items;
public int number_of_Column;
// Start is called before the first frame update
void Start()
{
//CreateDisplay();
}
// Update is called once per frame
void Update()
{
// UpdateDisplay();
/* for( int i = 0; i< inventory.Scrolls.Count; i++){
var item = inventory.Scrolls[i].item;
var obj = Instantiate(item.IconPrefab, Vector3.zero, Quaternion.identity, transform);
obj.GetComponent<RectTransform>().localPosition = GetPosition(i);
inventory.Scrolls[i].isDisplayed = true;
}
}