// Start is called before the first frame update void Start() { xmlManager = gameObject.AddComponent <XMLManager>(); orderMaterialManager = gameObject.AddComponent <OrderMaterialManager>(); dataManager = gameObject.AddComponent <DataManager>(); uiManager = GetComponent <UIManager>(); bagManaer = GetComponent <BagManager>(); productionMenuManager = GetComponent <ProductionMenuManager>(); timeManager = GetComponent <TimeManager>(); displayMenuManager = GetComponent <DisPlayMenuManager>(); npcManager = GetComponent <NPCManager>(); workstationManager = GetComponent <WorkstationManager>(); furnitureDisplayManager = GetComponent <FurnitureDisplayManager>(); wasteManager = GetComponent <WasteMenu>(); recipeMenuManager = GetComponent <RecipeMenuManager>(); requestManager = GetComponent <RequestManager>(); orderMaterialManager.Initialization(UIitemPrefabs, contentTr, xmlManager.GetOrderMaterial("재료"), description, materialName, materialImage, buyBtn, shoppingBaskeContentTr, choiceBtn); productionMenuManager.Initialization(xmlManager.GetProductionObjInfo("물약")); dataManager.Initialization(xmlManager.GetOrderMaterial("제작"), xmlManager.GetProductionObjInfo("전체")); workstationManager.Initialization(xmlManager.GetProductionObjInfo("전체"), xmlManager.GetOrderMaterial("재료")); recipeMenuManager.Initialization(xmlManager.GetOrderMaterial("재료")); requestManager.Initialization(xmlManager.GetRequstInfo(), xmlManager.GetAllItem()); Bind(); }