using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class CraftingSystem : MonoBehaviour { public GameObject craftingScreenUI; public GameObject toolsScreenUI,survivalScreenUI, refineScreenUI, constructionScreenUI; public List inventoryItemList = new List(); // Category Buttons Button toolsBTN, survivalBTN, refineBTN, constructionBTN; // Craft Buttons Button craftAxeBTN, craftPlankBTN,craftFoundationBTN, craftWallBTN; // Requirements Text Text AxeReq1, AxeReq2, PlankReq1,FoundationReq1,WallReq1; public bool isOpen; // All BLueprint public BluePrint AxeBLP = new BluePrint("Axe", 1, 2, "Stone", 3, "Stick", 3); public BluePrint PlankBLP = new BluePrint("Plank",2, 1, "Log", 1, "", 0); public BluePrint FoundationBLP = new BluePrint("Foundation",1, 1, "Plank", 4, "", 0); public BluePrint WallBLP = new BluePrint("Wall",1, 1, "Plank", 2, "", 0); public static CraftingSystem Instance { get; set; } private void Awake() { if (Instance != null && Instance != this) { DestroyObject(gameObject); } else { Instance = this; } } // Start is called before the first frame update void Start() { isOpen = false; toolsBTN = craftingScreenUI.transform.Find("ToolsButton").GetComponent