Exemplo n.º 1
0
 private void UnRegisterDialogs()
 {
     if (_ImgBGDialogs != null)
     {
         EventTriggerListenner.Get(_ImgBGDialogs.gameObject).onClick -= DisplayNextDialogRecord;
     }
 }
Exemplo n.º 2
0
 //rigister guide et image
 private void RigisterGuideET()
 {
     if (_ImgGuideET != null)
     {
         EventTriggerListenner.Get(_ImgGuideET.gameObject).onClick += GuideETOperation;
     }
 }
 private void RigisterBGImage()
 {
     if (_ImgBGDialogs)
     {
         EventTriggerListenner.Get(_ImgBGDialogs.gameObject).onClick += DisplayDialogNPC;
     }
 }
Exemplo n.º 4
0
 //rigister guide et image
 private void RigisterGuideVisualKey()
 {
     if (_ImgGuideVisualKey != null)
     {
         EventTriggerListenner.Get(_ImgGuideVisualKey.gameObject).onClick += GuideVisualKeyOperation;
     }
 }
Exemplo n.º 5
0
 /// <summary>
 /// rigister image
 /// </summary>
 public void RigisterAttack()
 {
     if (ImgBasicATK != null)
     {
         EventTriggerListenner.Get(ImgBasicATK.gameObject).onClick += BasicATK;
     }
     if (ImgATK1 != null)
     {
         EventTriggerListenner.Get(ImgATK1.gameObject).onClick += ATK1;
     }
     if (ImgATK2 != null)
     {
         EventTriggerListenner.Get(ImgATK2.gameObject).onClick += ATK2;
     }
     if (ImgATK3 != null)
     {
         EventTriggerListenner.Get(ImgATK3.gameObject).onClick += ATK3;
     }
     if (ImgATK4 != null)
     {
         EventTriggerListenner.Get(ImgATK4.gameObject).onClick += ATK4;
     }
 }
Exemplo n.º 6
0
        /// <summary>
        /// register buttoms and images
        /// </summary>
        private void RegisterTxtAndBtn()
        {
            //images
            if (Txt_10_Diamonds != null)
            {
                EventTriggerListenner.Get(Txt_10_Diamonds.gameObject).onClick += Display_10Diamonds;
            }
            if (Txt_10_Gold != null)
            {
                EventTriggerListenner.Get(Txt_10_Gold.gameObject).onClick += Display_10Gold;
            }
            if (Txt_5_HP != null)
            {
                EventTriggerListenner.Get(Txt_5_HP.gameObject).onClick += Display_HealthPotion;
            }
            if (Txt_5_MP != null)
            {
                EventTriggerListenner.Get(Txt_5_MP.gameObject).onClick += Display_ManaPotion;
            }
            if (Txt_1_Attack != null)
            {
                EventTriggerListenner.Get(Txt_1_Attack.gameObject).onClick += Display_Attack;
            }
            if (Txt_1_Defense != null)
            {
                EventTriggerListenner.Get(Txt_1_Defense.gameObject).onClick += Display_Defence;
            }
            if (Txt_1_Dexterity != null)
            {
                EventTriggerListenner.Get(Txt_1_Dexterity.gameObject).onClick += Display_Dexterity;
            }

            //buttons
            if (Btn_10_Diamonds != null)
            {
                EventTriggerListenner.Get(Btn_10_Diamonds.gameObject).onClick += Purchase10Diamonds;
            }
            if (Btn_10_Gold != null)
            {
                EventTriggerListenner.Get(Btn_10_Gold.gameObject).onClick += Purchase10Gold;
            }
            if (Btn_5_HP != null)
            {
                EventTriggerListenner.Get(Btn_5_HP.gameObject).onClick += Purchase5HealthPotion;
            }
            if (Btn_5_MP != null)
            {
                EventTriggerListenner.Get(Btn_5_MP.gameObject).onClick += Purchase5ManaPotion;
            }
            if (Btn_1_Attack != null)
            {
                EventTriggerListenner.Get(Btn_1_Attack.gameObject).onClick += Purchase1AttackIncrease;
            }
            if (Btn_1_Defense != null)
            {
                EventTriggerListenner.Get(Btn_1_Defense.gameObject).onClick += Purchase1DefenceIncrease;
            }
            if (Btn_1_Dexterity != null)
            {
                EventTriggerListenner.Get(Btn_1_Dexterity.gameObject).onClick += Purchase1DexterityIncrease;
            }
        }