private void Start() { rosta = GameObject.Find("PlayerData" + "(Clone)").GetComponent <RostaInfo>(); StartCoroutine(WaitAndShowStats()); equipPanel = itemInformationPanel.GetComponent <EquipmentInfoPanel>(); highlights = new GameObject[] { mainHandSlotHighlight, offHandSlotHighlight, armourSlotHighlight, accessory1SlotHighlight, accessory2SlotHighlight }; }
// Use this for initialization void Start() { buyConfirmDialog = GameObject.FindWithTag("BuyConfirmDialog"); unitSelectPanel = GameObject.FindWithTag("UnitSelectPanel"); sellAmountField = GameObject.Find("SellAmountField"); buyAmountField = GameObject.Find("BuyAmountField"); equipmentInfoPanel = StatusMenu.Instance.GetComponent <EquipmentInfoPanel>(); equipmentSlotPanel = StatusMenu.Instance.gameObject.transform.Find("Equipment Slot Panel " + StatusMenu.Instance.currPlayerUnit).gameObject; }
void Awake() { item = null; weapon = null; armor = null; equipped = false; infoPanel = Inventory.Instance.GetComponent <InfoPanel>(); equipmentInfoPanel = StatusMenu.Instance.GetComponent <EquipmentInfoPanel>(); shopOverlay = GameObject.Find("Shop Overlay"); DragItemHolder = GameObject.Find("DragItemHolder"); }
private void Awake() { equipPanel = GameObject.Find("Equipment Information Panel").GetComponent <EquipmentInfoPanel>(); }