void Awake() { backBtn.onClick.AddListener(BackClick); heroRequest = Singleton <HeroHttpRequest> .Instance; heroRequest.GetAllHeroSuccess += GetAllHeroSuccess; heroRequest.ConvertToSkillSuccess += ConvertToSkillSuccess; SkillGetItem.HeroToSkillClick += HeroToSkillClick; }
void Awake() { skillHeroScrollList = content.viewport.GetComponentInChildren <SkillHeroScrollList> (); skillScrollList = skillContent.viewport.GetComponentInChildren <SkillSkillScrollList> (); skillRequest = Singleton <SkillHttpRequest> .Instance; heroRequest = Singleton <HeroHttpRequest> .Instance; skillRequest.GetAllUserSkillsSuccess += GetAllUserSkillsSuccess; heroRequest.AddSkillSuccess += AddSkillSuccess; }
void Awake() { backBtn.onClick.AddListener(BackClick); userRequest = Singleton <UserHttpRequest> .Instance; userRequest.GetSkillPointSuccess += GetSkillPointSuccess; heroRequest = Singleton <HeroHttpRequest> .Instance; heroRequest.GetAllCanSkillPointHerosSuccess += GetAllCanSkillPointHerosSuccess; heroRequest.ConvertToSkillPointSuccess += ConvertToSkillPointSuccess; SkillExpHeroItem.FJHero += FJHero; }
void Awake() { GameObject httpRequestObject = GameObject.FindGameObjectWithTag("HeroHttpRequest"); if (httpRequestObject != null) { heroRequest = httpRequestObject.GetComponent <HeroHttpRequest> (); heroRequest.GetAllHeroSuccess += GetAllHeroSuccess; } else { Debug.Log("httpRequestObject is null"); } }
void Awake() { heroRequest = Singleton <HeroHttpRequest> .Instance; heroRequest.GetAllHeroSuccess += GetAllHeroSuccess; }