// Use this for initialization void Start() { skillPanel.gameObject.SetActive(false); backBtn.onClick.AddListener(BackClick); exSkill1Btn.onClick.AddListener(ExSkill1BtnClick); exSkill2Btn.onClick.AddListener(ExSkill2BtnClick); heroRequest.getAllHero(); }
void OneHeroClick() { OneSelected(); if (oneHeroBtn.GetComponentInChildren <Text> ().text.Equals("未选择")) { heroRequest.getAllHero(); } else { oneHeroRemoveBtn.gameObject.SetActive(true); } }
// Use this for initialization void Start() { RefreshDisplay(); heroRequest.getAllHero(); GameObject canvasObj = GameObject.FindGameObjectWithTag("HeroCanvas"); if (canvasObj != null) { screenW = canvasObj.GetComponent <RectTransform> ().rect.width; } }
// Use this for initialization void Start() { items = new List <Image> (); heroRequest.getAllHero(); }