public static void Open(ItemManager.Type type) { if (Instance == null) { Instance = ResourceManager.Instance.Spawn("EquipUpgradeUI", ResourceManager.Type.UI).GetComponent <EquipUpgradeUI>(); } Instance.Init(type); }
public static void Close() { Destroy(Instance.gameObject); Instance = null; }
private void EquipUpgradeOnClick() { EquipUpgradeUI.Open(ItemManager.Type.Warehouse); }