コード例 #1
0
ファイル: RostaManager.cs プロジェクト: ciarano84/barony
 private void Start()
 {
     rosta = GameObject.Find("PlayerData" + "(Clone)").GetComponent <RostaInfo>();
     StartCoroutine(WaitAndShowStats());
     equipPanel = itemInformationPanel.GetComponent <EquipmentInfoPanel>();
     highlights = new GameObject[] { mainHandSlotHighlight, offHandSlotHighlight, armourSlotHighlight, accessory1SlotHighlight, accessory2SlotHighlight };
 }
コード例 #2
0
ファイル: ButtonScript.cs プロジェクト: Maversnipe/SP4
 // 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;
 }
コード例 #3
0
 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");
 }
コード例 #4
0
 private void Awake()
 {
     equipPanel = GameObject.Find("Equipment Information Panel").GetComponent <EquipmentInfoPanel>();
 }