예제 #1
0
 private void Awake()
 {
     if (instancia == null)
     {
         instancia = this;
     }
 }
예제 #2
0
 void Awake()
 {
     toolTip       = tooltipRectTransform.GetComponent <ToolTipUI>();
     type          = (Item.EquipmentType)Enum.Parse(typeof(Item.EquipmentType), slotType, true);
     icon          = transform.Find("Icon").GetComponent <Image>();
     defaultSprite = icon.sprite;
     button        = transform.GetComponent <Button>();
     isItemEquiped = false;
 }
예제 #3
0
 void Awake()
 {
     toolTip = tooltipRectTransform.GetComponent <ToolTipUI>();
     icon    = transform.Find("Icon").GetComponent <Image>();
     button  = transform.GetComponent <Button>();
 }