Пример #1
0
 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;
 }
Пример #2
0
 // Use this for initialization
 void Awake()
 {
     Instance = this;
 }