Inheritance: MonoBehaviour
Exemplo n.º 1
0
 public void OnClickButtonSelfSpeak()
 {
     this.parse = TestParse.SkillSpeakLearn;
     this.ButtonSpeak.SetActive(true);
     this.m_Button_Back.gameObject.SetActive(true);
     this.ShowSpeakButton(false);
 }
Exemplo n.º 2
0
 public void OnClickButtonBack()
 {
     if (this.parse == TestParse.SkillSpeakLearn)
     {
         this.ButtonSpeak.SetActive(false);
         this.ShowSpeakButton(true);
         this.parse = TestParse.SkillSelectLearn;
     }
     else if (this.parse == TestParse.SkillSelectLearn)
     {
         this.SKillView.SetActive(true);
         this.MySelf.SetActive(false);
         this.SkillLearn.SetActive(false);
         this.selectSkillId = int.MinValue;
         this.m_List_Skills.UnSelectAllItems(false);
         this.m_Button_Back.gameObject.SetActive(false);
         this.parse = TestParse.SkillView;
     }
 }
Exemplo n.º 3
0
    public void EnterLearn(int skillId, bool bSelect = true)
    {
        this.SKillView.SetActive(false);
        this.MySelf.SetActive(true);
        this.parse = TestParse.SkillSelectLearn;
        GameSkillBase skill = SkillManager.singleton.GetSkill(skillId);

        if (skill != null)
        {
            this.m_Iamge_SkillIcon.sprite = WWWResourceManager.Instance.LoadSpriteFormAtla("common1.ab", skill.skillConfig.skillName);
            this.m_Text_SkillInfo.text    = skill.skillConfig.skillInfo + "\n <color=red>口令:" + skill.skillConfig.skillRealToken + "</color>";
            this.m_Text_SkillName.text    = skill.skillConfig.skillName;
            this.SkillLearn.SetActive(true);
        }
        if (!GuideModel.singleton.bIsGuideAllComp && bSelect == false)
        {
            GuideModel.singleton.NowTaskId = 6004;
            EventDispatch.Broadcast(Events.DlgGuideExecuteNextTask);
        }
        else if (GuideModel.singleton.bIsGuideAllComp)
        {
            this.m_Button_Back.gameObject.SetActive(true);
        }
    }