using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using TMPro; using System; using System.Linq; //ONLY FOR TESTING #region //Progress of missions [System.Serializable] public class ProductDetails{ public string productID; //records the week the player is at public string productName; public string productDescription; //records the week the player is at public int productPrice; //records the week the player is at public string productImage; } #endregion public class PopulateStore : MonoBehaviour { public GameObject[] BBundle_Prefab; //Big Bundle, The 1st is Container, 2nd is Prefab public GameObject[] SBundle_Prefab; //Big Bundle, The 1st is Container, 2nd is Prefab public GameObject[] ProductPage; //0 is the gameobject for the individual product page, 1 is product page dismiss button [HideInInspector] public List retrievedProductDetails, retrievedBundleProductDetails; public Sprite[] productSprites; // Array of product sprites // private Dictionary SamplePurchaseItems = new Dictionary() // { // { "Outfit1", "1", "2" }, //Dropdown // { "Outfit2", "3", "4" }, //Not dropdown // { "Outfit3", "5", "6" }, //Not dropdown // }; void onEnable(){ } void Awake(){ Button ProductPageDismissBtn = ProductPage[1].GetComponent