コード例 #1
0
    void Awake()
    {
        backBtn.onClick.AddListener(BackClick);

        heroRequest = Singleton <HeroHttpRequest> .Instance;
        heroRequest.GetAllHeroSuccess     += GetAllHeroSuccess;
        heroRequest.ConvertToSkillSuccess += ConvertToSkillSuccess;
        SkillGetItem.HeroToSkillClick     += HeroToSkillClick;
    }
コード例 #2
0
    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;
    }
コード例 #3
0
    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;
    }
コード例 #4
0
ファイル: HeroScrollList.cs プロジェクト: PenpenLi/u3d-sanguo
    void Awake()
    {
        GameObject httpRequestObject = GameObject.FindGameObjectWithTag("HeroHttpRequest");

        if (httpRequestObject != null)
        {
            heroRequest = httpRequestObject.GetComponent <HeroHttpRequest> ();
            heroRequest.GetAllHeroSuccess += GetAllHeroSuccess;
        }
        else
        {
            Debug.Log("httpRequestObject is null");
        }
    }
コード例 #5
0
 void Awake()
 {
     heroRequest = Singleton <HeroHttpRequest> .Instance;
     heroRequest.GetAllHeroSuccess += GetAllHeroSuccess;
 }