示例#1
0
 public void updateGuildPve()
 {
     if (guild != null && instance.isGuildFightOpen())
     {
         guildPveBar.gameObject.SetActive(true);
         int power    = UserManager.Instance.self.guildFightPower;
         int powerMax = UserManager.Instance.self.guildFightPowerMax;
         guildPveBar.updateValue(power, powerMax);
         guildPveValue.text = power + "/" + powerMax;
     }
     else
     {
         guildPveBar.gameObject.SetActive(false);
     }
 }
示例#2
0
 private void onClickReceiveButton(GameObject go)
 {
     if (isDrawPrizes())
     {
         Guild guild = GuildManagerment.Instance.getGuild();
         GuildFightSampleManager instance = GuildFightSampleManager.Instance();
         if (mSample.taskType == 1 && guild != null && instance.isOverPower() && instance.isGuildFightOpen() && !TaskManagerment.Instance.isTips)
         {
             UiManager.Instance.openDialogWindow <GuildFightPowerTipWindow>((win) => {
                 win.initWindow(UserManager.Instance.self.guildFightPower, instance.getTaskPowerBySid(GuildFightSampleManager.TASK_POWER), overTask);
             });
         }
         else
         {
             overTask(null);
         }
     }
     else
     {
         noDrawPrize();
     }
 }