Ejemplo n.º 1
0
 void DiagHandler(DialogueMgr.BTNS btn)
 {
     if(btn == DialogueMgr.BTNS.Btn1){
         mSkillEvent = new SetSkillEvent(ReceivedSet);
         NetMgr.SetSkill(transform.root.FindChild("SkillList").GetComponent<SkillList>().mCardInfo,
                         mInfo, transform.root.FindChild("SkillList").GetComponent<SkillList>().mIdx, mSkillEvent);
     }
 }
Ejemplo n.º 2
0
 void DiagHandler(DialogueMgr.BTNS btn)
 {
     if (btn == DialogueMgr.BTNS.Btn1)
     {
         mSkillEvent = new SetSkillEvent(ReceivedSet);
         NetMgr.SetSkill(transform.root.FindChild("SkillList").GetComponent <SkillList>().mCardInfo,
                         mInfo, transform.root.FindChild("SkillList").GetComponent <SkillList>().mIdx, mSkillEvent);
     }
 }
Ejemplo n.º 3
0
    void DiagHandler(DialogueMgr.BTNS btn)
    {
        if(btn == DialogueMgr.BTNS.Btn1){
            if(UserMgr.UserInfo.gold < 50){
                DialogueMgr.ShowDialogue(UtilMgr.GetLocalText("StrError"), UtilMgr.GetLocalText("StrNotEnoughGold2"), DialogueMgr.DIALOGUE_TYPE.Alert, null);
                return;
            }
            mOffEvent = new SetSkillEvent(ReceivedOff);
            NetMgr.OffSkill(transform.root.FindChild("PlayerCard").GetComponent<PlayerCard>().mCardInfo, mInfo,
                            int.Parse(transform.name.Substring(transform.name.Length-1, 1)), mOffEvent);

        }
    }
Ejemplo n.º 4
0
 void DiagHandler(DialogueMgr.BTNS btn)
 {
     if (btn == DialogueMgr.BTNS.Btn1)
     {
         if (UserMgr.UserInfo.gold < 50)
         {
             DialogueMgr.ShowDialogue(UtilMgr.GetLocalText("StrError"), UtilMgr.GetLocalText("StrNotEnoughGold2"), DialogueMgr.DIALOGUE_TYPE.Alert, null);
             return;
         }
         mOffEvent = new SetSkillEvent(ReceivedOff);
         NetMgr.OffSkill(transform.root.FindChild("PlayerCard").GetComponent <PlayerCard>().mCardInfo, mInfo,
                         int.Parse(transform.name.Substring(transform.name.Length - 1, 1)), mOffEvent);
     }
 }