Esempio n. 1
0
    bool IschatChannel()
    {
        if (_SendChatKind != ChatKind.CK_World)
        {
            if (!GamePlayer.Instance.GetOpenSubSystemFlag(OpenSubSystemFlag.OSSF_Family) && _OpenChannels[(int)ChatKind.CK_Guild])
            {
                PopText.Instance.Show(LanguageManager.instance.GetValue("jiazuweikaiqi"));
                return(false);
            }
            if (!GuildSystem.IsInGuild() && _OpenChannels[(int)ChatKind.CK_Guild])
            {
                PopText.Instance.Show(LanguageManager.instance.GetValue("meiyoujiazu"));
                return(false);
            }
            if (!GamePlayer.Instance.GetOpenSubSystemFlag(OpenSubSystemFlag.OSSF_Team) && _OpenChannels[(int)ChatKind.CK_Team])
            {
                PopText.Instance.Show(LanguageManager.instance.GetValue("duiwuweikai"));
                return(false);
            }
            if (!TeamSystem.IsInTeam() && _OpenChannels[(int)ChatKind.CK_Team])
            {
                PopText.Instance.Show(LanguageManager.instance.GetValue("meiyouduiwu"));
                return(false);
            }
            if (_OpenChannels[(int)ChatKind.CK_System])
            {
                PopText.Instance.Show(LanguageManager.instance.GetValue("bunengfasong"));
                return(false);
            }
        }

        return(true);
    }
Esempio n. 2
0
    public void ClearCurrentState()
    {
        CinemaManager cm = GameObject.FindObjectOfType <CinemaManager>();

        if (cm != null)
        {
            cm.Clear();
        }
        _IsSenseMode = false;
        nextBattle_  = null;
        XInput.Instance.dealInput = true;
        CreatePlayerRole.Reset();
        GlobalInstanceFunction.Instance.Clear();
        Battle.Instance.ResetData();
        TeamSystem._MyTeamInfo = null;
        Prebattle.Instance.Fini();
        Prebattle.Instance.StopAllAutoSystem();
        Prebattle.Instance.nextInfo_   = null;
        Prebattle.Instance.tooFastOper = false;
        StageMgr.ClearStageLoadQue();
        EffectMgr.Instance.DeleteAll();
        GamePlayer.Instance.isInBattle = false;
        GuildSystem.Clear();
        TeamSystem.Clear();
        SuccessSystem.Clear();
        GatherSystem.instance.Clear();
        GuideManager.Instance.ClearMask();
        UIFactory.Instance.ClearLoadedUI();
        SoundTools.StopMusic();
        RaiseUpSystem.Clear();
        BagSystem.instance.BagClear();
        PopText.Instance.Clear();
        GamePlayer.Instance.babies_list_.Clear();
    }
        void Update()
        {
            Player player = Player.localPlayer;

            // use collider point(s) to also work with big entities
            if (player != null &&
                player.Target != null && player.Target is Npc &&
                Utility.Utility.ClosestDistance(player.collider, player.Target.collider) <= player.interactionRange)
            {
                createNameInput.interactable = !player.InGuild() &&
                                               player.Money >= GuildSystem.CreationPrice;
                createNameInput.characterLimit = GuildSystem.NameMaxLength;

                createPriceText.text = GuildSystem.CreationPrice.ToString();

                createButton.interactable = !player.InGuild() && GuildSystem.IsValidGuildName(createNameInput.text);
                createButton.onClick.SetListener(() =>
                {
                    player.CmdCreateGuild(createNameInput.text);
                    createNameInput.text = ""; // clear the input afterwards
                });

                terminateButton.interactable = player.guild.CanTerminate(player.name);
                terminateButton.onClick.SetListener(() =>
                {
                    player.CmdTerminateGuild();
                });
            }
            else
            {
                panel.SetActive(false);
            }
        }
Esempio n. 4
0
 void OnFamilyDataEvent(COM_GuildBuilding guild)
 {
     if (data_ == null)
     {
         return;
     }
     name_.text       = data_.name_;
     icon_.spriteName = data_.icon_;
     gameObject.SetActive(true);
     levelImg.spriteName = "jz_" + guild.level_;
     needGold_.text      = data_.needMoney_.ToString();
     haveGold_.text      = FamilySystem.instance.GuildData.fundz_.ToString();
     if (FamilySystem.instance.GuildData.fundz_ < data_.needMoney_)
     {
         levelUpBtn.isEnabled = false;
     }
     else
     {
         levelUpBtn.isEnabled = true;
     }
     if ((GuildBuildingType)data_.type_ == GuildBuildingType.GBT_Main)
     {
         if (GuildSystem.GetGuildMemberSelf((int)GamePlayer.Instance.InstId).job_ < (int)GuildJob.GJ_VicePremier)
         {
             levelUpBtn.isEnabled = false;
         }
     }
     else
     {
         if (GuildSystem.GetGuildMemberSelf((int)GamePlayer.Instance.InstId).job_ < (int)GuildJob.GJ_SecretaryHead)
         {
             levelUpBtn.isEnabled = false;
         }
     }
 }
Esempio n. 5
0
    private void OnClickKick(ButtonScript obj, object args, int param1, int param2)
    {
        COM_GuildMember self = GuildSystem.GetGuildMemberSelf(GamePlayer.Instance.InstId);
        GuildJob        job  = (GuildJob)Enum.ToObject(typeof(GuildJob), self.job_);

        if (job == GuildJob.GJ_Premier || job == GuildJob.GJ_VicePremier)
        {
            GuildJob mjob = (GuildJob)Enum.ToObject(typeof(GuildJob), Member.job_);
            if (mjob == GuildJob.GJ_People)
            {
                NetConnection.Instance.kickOut((int)Member.roleId_);
            }
            else
            {
                PopText.Instance.Show(LanguageManager.instance.GetValue("tichuduiyuan"));
            }
        }
        else
        {
            PopText.Instance.Show(LanguageManager.instance.GetValue("EN_CommandPositionLess"));
        }


        gameObject.SetActive(false);
    }
Esempio n. 6
0
    private void OnClicktanheBtn(ButtonScript obj, object args, int param1, int param2)
    {
        int OffineTimeMax = 0;
        int itemid        = 0;

        GlobalValue.Get(Constant.C_FamilyLeaderOffineTimeMax, out OffineTimeMax);
        GlobalValue.Get(Constant.C_FamilyLoseLeaderItem, out itemid);
        uint offlineTime = GuildSystem.GetPremier().offlineTime_;

        if (GetTime(offlineTime) > OffineTimeMax)
        {
            ItemData idata = ItemData.GetData(itemid);
            if (BagSystem.instance.GetItemCount((uint)itemid) == 0)
            {
                PopText.Instance.Show(LanguageManager.instance.GetValue("shangchenggoumai").Replace("{n}", idata.name_));
            }
            else
            {
                MessageBoxUI.ShowMe(LanguageManager.instance.GetValue("tanhezuzhang"), () => {
                    NetConnection.Instance.familyLoseLeader();
                });
            }
        }
        else
        {
            PopText.Instance.Show(LanguageManager.instance.GetValue("tanhecuowu"));
        }
    }
Esempio n. 7
0
 void OnClickpvp(ButtonScript obj, object args, int param1, int param2)
 {
     if (Prebattle.Instance.FindPlayer((int)PlayerInst.instId_) == null)
     {
         PopText.Instance.Show(LanguageManager.instance.GetValue("duifangbuzaichangjing"));
         return;
     }
     if (Prebattle.Instance.FindPlayer((int)PlayerInst.instId_) != null && Prebattle.Instance.FindPlayer((int)PlayerInst.instId_).playerData_.isInBattle_)
     {
         PopText.Instance.Show(LanguageManager.instance.GetValue("zhengzaizhandou"));
         return;
     }
     if (GuildSystem.IsMyGuildMember((int)PlayerInst.instId_) && ssd.sceneType_ == SceneType.SCT_GuildBattleScene)
     {
         PopText.Instance.Show(LanguageManager.instance.GetValue("bunenggongjibenjiazu"));
         return;
     }
     if (/*ssd.sceneType_ == SceneType.SCT_TeamPK||ssd.sceneType_ == SceneType.SCT_AlonePK &&*/ TeamSystem.isTeamMember((int)PlayerInst.instId_))
     {
         PopText.Instance.Show(LanguageManager.instance.GetValue("bunenggongji"));
         return;
     }
     if (GuildSystem.battleState == 1 && ssd.sceneType_ == SceneType.SCT_GuildBattleScene)
     {
         PopText.Instance.Show(LanguageManager.instance.GetValue("jiazuzhanopen"));
         return;
     }
     if (GuildSystem.battleState == 3)
     {
         PopText.Instance.Show(LanguageManager.instance.GetValue("jiazuzhanojieshu"));
         return;
     }
     NetConnection.Instance.requestPk((uint)PlayerInst.instId_);
 }
Esempio n. 8
0
 private void OnyaoqingBtn(ButtonScript obj, object args, int param1, int param2)
 {
     if (GuildSystem.IsInGuild())
     {
         gjob = (GuildJob)Enum.ToObject(typeof(GuildJob), GuildSystem.GetGuildMemberSelf(GamePlayer.Instance.InstId).job_);
         if (gjob == GuildJob.GJ_VicePremier)
         {
             PopText.Instance.Show(LanguageManager.instance.GetValue("yaoqingchenggong"));
         }
         else if (gjob == GuildJob.GJ_SecretaryHead)
         {
             PopText.Instance.Show(LanguageManager.instance.GetValue("yaoqingchenggong"));
         }
         else
         if (gjob == GuildJob.GJ_Premier)
         {
             PopText.Instance.Show(LanguageManager.instance.GetValue("yaoqingchenggong"));
         }
         NetConnection.Instance.inviteJoinGuild(_splayerInst.instName_);
     }
     else
     {
         PopText.Instance.Show(LanguageManager.instance.GetValue("nojiazu"));
     }
 }
Esempio n. 9
0
 void Start()
 {
     item.SetActive(false);
     //GuildSystem.updateGuildShopOk += UpdateGuildShopOK;
     gongxianLable.text = GuildSystem.GetGuildMemberSelf(GamePlayer.Instance.InstId).contribution_.ToString();
     GlobalValue.Get(Constant.C_FamilyShopConsume, out xiaohao);
     xiaohaoLable.text = xiaohao.ToString();
     UIManager.SetButtonEventHandler(shuaxinBtn.gameObject, EnumButtonEvent.OnClick, onClickRef, 0, 0);
     COM_GuildShopItem [] shopitem = GuildSystem.GetGuildMemberSelf(GamePlayer.Instance.InstId).shopItems_;
     refXiaohao        = Mathf.Pow(2, GuildSystem.GetGuildMemberSelf(GamePlayer.Instance.InstId).shopRefreshTimes_) * xiaohao;
     xiaohaoLable.text = refXiaohao.ToString();
     if (IsRefShopCountDown(GuildSystem.GetGuildMemberSelf(GamePlayer.Instance.InstId)))
     {
         shuaxinBtn.isEnabled = false;
     }
     UpdateGuildShop(shopitem);
     if (isShowMe)
     {
         CloseBtn.gameObject.SetActive(true);
         UIManager.SetButtonEventHandler(CloseBtn.gameObject, EnumButtonEvent.OnClick, onClickClose, 0, 0);
         back.gameObject.SetActive(true);
     }
     else
     {
         CloseBtn.gameObject.SetActive(false);
         back.gameObject.SetActive(false);
     }
     updateRefGuildShopCount(GuildSystem.GetGuildMemberSelf(GamePlayer.Instance.InstId));
 }
Esempio n. 10
0
    void OnClicYaoqing(ButtonScript obj, object args, int param1, int param2)
    {
        if (!GamePlayer.Instance.GetOpenSubSystemFlag(OpenSubSystemFlag.OSSF_Team))
        {
            PopText.Instance.Show(LanguageManager.instance.GetValue("duiwuweikai"));
            return;
        }
//		if(!(((GuildMember.openSubSystemFlag_) &(0x1 << (int)OpenSubSystemFlag.OSSF_Team)) != 0))
//		{
//			PopText.Instance.Show(LanguageManager.instance.GetValue("Duifangduiwu"));
//			return;
//		}
        SceneData ssd = SceneData.GetData(GameManager.SceneID);

        if (ssd.sceneType_ == SceneType.SCT_AlonePK || ssd.sceneType_ == SceneType.SCT_TeamPK)
        {
            PopText.Instance.Show(LanguageManager.instance.GetValue("bunengzudui"));
            return;
        }
        if (ssd.sceneType_ == SceneType.SCT_GuildBattleScene)
        {
            if (!GuildSystem.IsInMyGuild(GuildMember.roleId_))
            {
                PopText.Instance.Show(LanguageManager.instance.GetValue("bunengyaoqingdifang"));
                return;
            }
        }
        NetConnection.Instance.inviteTeamMember(name);
    }
Esempio n. 11
0
    private void OnClickappoint(ButtonScript obj, object args, int param1, int param2)
    {
        gjob = (GuildJob)Enum.ToObject(typeof(GuildJob), param1);

        MessageBoxUI.ShowMe(LanguageManager.instance.GetValue("renming").Replace("{n}", Member.roleName_).Replace("(n1)", LanguageManager.instance.GetValue(param1.ToString())), () => {
            if (gjob == GuildJob.GJ_VicePremier && GuildSystem.GetJopNumber(GuildJob.GJ_VicePremier) == 2)
            {
                PopText.Instance.Show(LanguageManager.instance.GetValue("reminfuzuzhang"));
                return;
            }
            else if (gjob == GuildJob.GJ_SecretaryHead && GuildSystem.GetJopNumber(GuildJob.GJ_SecretaryHead) == 4)
            {
                PopText.Instance.Show(LanguageManager.instance.GetValue("renmingzhanglao"));
                return;
            }
            else
            if (gjob == GuildJob.GJ_Minister && GuildSystem.GetJopNumber(GuildJob.GJ_Minister) == 12)
            {
                PopText.Instance.Show(LanguageManager.instance.GetValue("renmingjingying"));
                return;
            }
            NetConnection.Instance.changeMemberPosition((int)Member.roleId_, gjob);
        }, false, () => {
            gameObject.SetActive(false);
        });
        gameObject.SetActive(false);
//		changeObj.SetActive (true);
//		AppointTips atips = changeObj.GetComponent<AppointTips>();
//		atips.Member = Member;
//		gameObject.SetActive (false);
    }
Esempio n. 12
0
//	void OnClickPlus(ButtonScript obj, object args, int param1, int param2)
//	{
//		count++;
//		if(count>maxCount)count = maxCount;
//		numLabel.text = count.ToString();
//		needMoneyLab.text = (Hdata.Price_ * count).ToString ();
//	}
//	void OnClickMinus(ButtonScript obj, object args, int param1, int param2)
//	{
//		count--;
//		if(count<1)count = 1;
//		numLabel.text = count.ToString();
//		needMoneyLab.text = (Hdata.Price_ * count).ToString ();
//	}
    void OnClicketermine(ButtonScript obj, object args, int param1, int param2)
    {
        if (GamePlayer.Instance.GetIprop(PropertyType.PT_BagNum) <= BagSystem.instance.GetBagSize())
        {
            //ErrorTipsUI.ShowMe(LanguageManager.instance.GetValue("bagfull"));
            PopText.Instance.Show(LanguageManager.instance.GetValue("bagfull"));
            return;
        }
        string type = "";

        type = LanguageManager.instance.GetValue("Guild_gongxian");
        int gongx = GuildSystem.GetGuildMemberSelf(GamePlayer.Instance.InstId).contribution_;

        MessageBoxUI.ShowMe(LanguageManager.instance.GetValue("shopbuyitem").Replace("{n}", (count * Hdata.Num_).ToString()).Replace("{n1}", Hdata.name_).Replace("{n2}", (count * Hdata.Price_).ToString() + type), () => {
            if (gongx < Hdata.Price_)
            {
                PopText.Instance.Show(LanguageManager.instance.GetValue("familyGongxian"));
                return;
            }



            NetConnection.Instance.buyGuildItem(Hdata.id_, count);
        });
        gameObject.SetActive(false);
    }
Esempio n. 13
0
    void RefreshItemDatas(short page, short pageNum, COM_GuildViewerData[] Datas)
    {
        if (pageNum == 0)
        {
            numLbel.text = page + "/" + pageNum;
        }
        else
        {
            numLbel.text = (page + 1) + "/" + pageNum;
        }
        maxPage = pageNum;
        curPage = page;
        for (int i = 0; i < items.Count; i++)
        {
            items[i].SetActive(false);
        }

        for (int j = 0; j < Datas.Length; j++)
        {
            if (Datas.Length > items.Count)
            {
                break;
            }
            items[j].SetActive(true);
            FamilyCell fcell = items[j].GetComponent <FamilyCell>();
            fcell.Index           = j;
            fcell.Page            = page;
            fcell.GuildViewerData = Datas[j];
            if (GuildSystem.isExt)
            {
                GuildSystem.UpdateRequest(page, j, false);
            }
        }
    }
Esempio n. 14
0
 public void SetOnline(bool online)
 {
     // validate
     if (InGuild())
     {
         GuildSystem.SetGuildOnline(guild.name, name, online);
     }
 }
Esempio n. 15
0
 public void CmdLeave()
 {
     // validate
     if (InGuild())
     {
         GuildSystem.LeaveGuild(guild.name, name);
     }
 }
Esempio n. 16
0
 public void CmdTerminate()
 {
     // validate
     if (InGuild() && IsGuildManagerNear())
     {
         GuildSystem.TerminateGuild(guild.name, name);
     }
 }
Esempio n. 17
0
 public void CmdDemote(string memberName)
 {
     // validate
     if (InGuild())
     {
         GuildSystem.DemoteMember(guild.name, name, memberName);
     }
 }
Esempio n. 18
0
 public void CmdKick(string memberName)
 {
     // validate
     if (InGuild())
     {
         GuildSystem.KickFromGuild(guild.name, name, memberName);
     }
 }
Esempio n. 19
0
 private void onClickRef(ButtonScript obj, object args, int param1, int param2)
 {
     if (GuildSystem.GetGuildMemberSelf(GamePlayer.Instance.InstId).contribution_ < xiaohao)
     {
         PopText.Instance.Show(LanguageManager.instance.GetValue("familyGongxian"));
         return;
     }
     NetConnection.Instance.refreshGuildShop();
 }
Esempio n. 20
0
    void OnClickJDW(ButtonScript obj, object args, int param1, int param2)
    {
        if (!GamePlayer.Instance.GetOpenSubSystemFlag(OpenSubSystemFlag.OSSF_Team))
        {
            PopText.Instance.Show(LanguageManager.instance.GetValue("duiwuweikai"));
            return;
        }
        //if(!(((PlayerInst.openSubSystemFlag_) &(0x1 << (int)OpenSubSystemFlag.OSSF_Team)) != 0))
        //{
        //	PopText.Instance.Show(LanguageManager.instance.GetValue("Duifangduiwu"));
        //	return;
        //}
        SceneData ssd = SceneData.GetData(GameManager.SceneID);

        //if(ssd.sceneType_ == SceneType.SCT_AlonePK||ssd.sceneType_ == SceneType.SCT_TeamPK)
        //{
        //    PopText.Instance.Show(LanguageManager.instance.GetValue("bunengzudui"));
        //    return;
        //}
        if (ssd.sceneType_ == SceneType.SCT_GuildBattleScene)
        {
            if (!GuildSystem.IsInMyGuild(PlayerInst.instId_))
            {
                PopText.Instance.Show(LanguageManager.instance.GetValue("bunengyaoqingdifang"));
                return;
            }
        }
        if (TeamSystem.IsInTeam())
        {
            if (!TeamSystem.IsTeamLeader(GamePlayer.Instance.InstId))
            {
                PopText.Instance.Show(LanguageManager.instance.GetValue("onlyLeaderCanOperate"));
            }
            else
            {
                NetConnection.Instance.inviteTeamMember(PlayerInst.instName_);
                //PopText.Instance.Show(LanguageManager.instance.GetValue("yaoqingchenggong"));
                gameObject.SetActive(false);
            }
        }
        else
        {
            //NetConnection.Instance.jointLobby();

            COM_CreateTeamInfo cti = new COM_CreateTeamInfo();
            cti.type_ = TeamType.TT_MainQuest;
            cti.name_ = LanguageManager.instance.GetValue("autoTeam");
            //cti.pwd_ = passWordInput.text;
            cti.maxMemberSize_ = 5;
            cti.minLevel_      = 1;
            cti.maxLevel_      = (ushort)maxLevel;
            NetConnection.Instance.createTeam(cti);
            // NetConnection.Instance.inviteTeamMember(PlayerInst.instName_);
            PopText.Instance.Show(LanguageManager.instance.GetValue("yaoqingchenggong"));
        }
    }
Esempio n. 21
0
    public void SetrequestBtn()
    {
        isrequest = true;
        GuildSystem.UpdateRequest(Page, Index, isrequest);
        UILabel la = requestBtn.GetComponentInChildren <UILabel> ();

        la.text = LanguageManager.instance.GetValue("Guild_Yshenqing");
        UIButton btn = requestBtn.GetComponent <UIButton> ();

        btn.isEnabled = false;
    }
Esempio n. 22
0
 public void OnClickrequest(ButtonScript obj, object args, int param1, int param2)
 {
     if (GuildSystem.battleState == 0 && IsExitGuild24())
     {
         isrequest = !isrequest;
         GuildSystem.UpdateRequest(Page, Index, isrequest);
         UILabel la = obj.GetComponentInChildren <UILabel> ();
         la.text = LanguageManager.instance.GetValue("Guild_Yshenqing");
         UIButton btn = obj.GetComponent <UIButton> ();
         requestBtn.isEnabled = false;
     }
     NetConnection.Instance.requestJoinGuild(GuildViewerData.guid_);
 }
Esempio n. 23
0
    private void OnClickmember(ButtonScript obj, object args, int param1, int param2)
    {
        if (GuildSystem.GetGuildMemberSelf(GamePlayer.Instance.InstId).roleId_ == param1)
        {
            return;
        }
        tipsObj.SetActive(true);
        OperatingTips opt   = tipsObj.GetComponent <OperatingTips> ();
        MemberCell    mcell = obj.GetComponent <MemberCell>();

        opt.Member = mcell.Member;
        opt.jiantou.transform.position = new Vector3(opt.jiantou.transform.position.x, obj.gameObject.transform.position.y, 0f);
    }
Esempio n. 24
0
    void UpdatePlayerMoneyOk()
    {
        if (_guild == null)
        {
            return;
        }
        familyExpLabel.text = _guild.fundz_.ToString();
        if (GuildSystem.GetGuildMemberSelf(GamePlayer.Instance.InstId) != null)
        {
            familyGongxianLabel.text = GuildSystem.GetGuildMemberSelf(GamePlayer.Instance.InstId).contribution_.ToString();
        }

        familyLeveLabel.text = _guild.buildings_[((int)GuildBuildingType.GBT_Main) - 1].level_.ToString();
    }
Esempio n. 25
0
    public void CmdSetNotice(string notice)
    {
        // validate
        // (only allow changes every few seconds to avoid bandwidth issues)
        if (InGuild() && NetworkTime.time >= player.nextRiskyActionTime)
        {
            // try to set notice
            GuildSystem.SetGuildNotice(guild.name, name, notice);
        }

        // reset risky time no matter what. even if set notice failed, we don't
        // want people to spam attempts all the time.
        player.nextRiskyActionTime = NetworkTime.time + GuildSystem.NoticeWaitSeconds;
    }
Esempio n. 26
0
    private void UpdatememberPosition()
    {
        for (int i = 0; i < labels.Count; i++)
        {
            labels[i].text = "空";
            Toggles[i].GetComponent <BoxCollider>().enabled = false;
        }

        for (int i = 0; i < GuildSystem.GetVicePremiers().Count; i++)
        {
            labels[i].text = GuildSystem.GetVicePremiers()[i].roleName_;
            Toggles[i].GetComponent <BoxCollider>().enabled = true;
        }
    }
Esempio n. 27
0
    public void CmdInviteAccept()
    {
        // valid invitation?
        // note: no distance check because sender might be far away already
        if (!InGuild() && inviteFrom != "" &&
            Player.onlinePlayers.TryGetValue(inviteFrom, out Player sender) &&
            sender.guild.InGuild())
        {
            // try to add. GuildSystem does all the checks.
            GuildSystem.AddToGuild(sender.guild.guild.name, sender.name, name, player.level.current);
        }

        // reset guild invite in any case
        inviteFrom = "";
    }
Esempio n. 28
0
 public void UpdateGuildShopOK(COM_GuildMember Member)
 {
     refXiaohao         = (Mathf.Pow(2, Member.shopRefreshTimes_) * xiaohao);
     xiaohaoLable.text  = refXiaohao.ToString();
     gongxianLable.text = GuildSystem.GetGuildMemberSelf(GamePlayer.Instance.InstId).contribution_.ToString();
     foreach (Transform tr in grid.transform)
     {
         Destroy(tr.gameObject);
     }
     UpdateGuildShop(Member.shopItems_);
     if (IsRefShopCountDown(Member))
     {
         shuaxinBtn.isEnabled = false;
     }
 }
Esempio n. 29
0
    private void OnClickmainToggle(ButtonScript obj, object args, int param1, int param2)
    {
        UIToggle tog = obj.GetComponent <UIToggle> ();

        if (GuildSystem.GetVicePremiers().Count > 1)
        {
            targetId = GuildSystem.GetVicePremiers()[1].roleId_;

            RadioToggle(tog);
        }
        else
        {
            tog.value = false;
        }
    }
Esempio n. 30
0
    void OnClickChuan(ButtonScript obj, object args, int param1, int param2)
    {
        QuestData qdata = QuestData.GetData(CurrentId);

        if (qdata.questKind_ == QuestKind.QK_Guild)
        {
            if (!GuildSystem.IsInGuild())
            {
                PopText.Instance.Show(LanguageManager.instance.GetValue("gonghui"));
                return;
            }
        }
        if (GameManager.Instance.ParseNavMeshInfo(qdata.xunlu))
        {
            Prebattle.Instance.ChangeWalkEff(Prebattle.WalkState.WS_AFP);
        }
    }