void Awake() { InvUI = FindObjectOfType(typeof(InventoryUI)) as InventoryUI; VendorPanel = FindObjectOfType(typeof(VendorUI)) as VendorUI; SkillBarPanel = FindObjectOfType(typeof(SkillBarUI)) as SkillBarUI; EquipmentPanel = FindObjectOfType(typeof(EquipmentUI)) as EquipmentUI; InvContainer = FindObjectOfType(typeof(ContainerUI)) as ContainerUI; InvCraft = FindObjectOfType(typeof(CraftUI)) as CraftUI; InvItemGroup = FindObjectOfType(typeof(ItemGroupUI)) as ItemGroupUI; HoverScript = FindObjectOfType(typeof(HoverItem)) as HoverItem; }
// Use this for initialization void Awake() { Instance = this; }