Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
| | |
| | | redpointBeh.redpointId = redpoint.id;
|
| | | }
|
| | | ItemCellModel cellModel = new ItemCellModel(itemConfig.ID, false, 0, "",PackType.Deleted,true);
|
| | | itemCell.button.enabled = false;
|
| | | itemCell.Init(cellModel);
|
| | | nameText.text = itemConfig.ItemName;
|
| | | nameText.color = UIHelper.GetUIColor(itemConfig.ItemColor, true);
|
| | |
| | | public string accountBuf { get; private set; }
|
| | | public string passwordBuf { get; private set; }
|
| | |
|
| | | public void UpdateCrossServerOneVsOneData(HC001_tagGCCrossRealmPKMatchOK matchOK,bool isClient)
|
| | | public void UpdateCrossServerOneVsOneData(HC001_tagGCCrossRealmPKMatchOK matchOK, bool isClient)
|
| | | {
|
| | | oneVsOnePlayerData = new CrossServerOneVsOne()
|
| | | {
|
| | | isClient=isClient,
|
| | | isClient = isClient,
|
| | | roomId = matchOK.RoomID,
|
| | | waitForLoginCrossServer = true,
|
| | | validTimeLimited = Time.time + 30f,
|
| | |
| | | gamePortBuf = gamePort;
|
| | |
|
| | | StopLoginOverTimeProcess();
|
| | | loginOverTimeClock = Clock.AlarmAt(DateTime.Now + new TimeSpan(30 * TimeSpan.TicksPerSecond), () =>
|
| | | {
|
| | | busy = false;
|
| | | ReAccountLogin();
|
| | | });
|
| | | loginOverTimeClock = Clock.AlarmAt(DateTime.Now.AddSeconds(30), () =>
|
| | | {
|
| | | busy = false;
|
| | | ReAccountLogin();
|
| | | });
|
| | |
|
| | | GameNetSystem.Instance.BeginConnectCrossServer(ipBuf, gamePortBuf, OnGameServerConnected);
|
| | | NetLinkWin.Show();
|
| | |
| | | {
|
| | | this.reconnectBackGround = true;
|
| | | StopLoginOverTimeProcess();
|
| | | loginOverTimeClock = Clock.AlarmAt(DateTime.Now + new TimeSpan(30 * TimeSpan.TicksPerSecond), () =>
|
| | | {
|
| | | busy = false;
|
| | | ReAccountLogin();
|
| | | });
|
| | | loginOverTimeClock = Clock.AlarmAt(DateTime.Now.AddSeconds(30), () =>
|
| | | {
|
| | | busy = false;
|
| | | ReAccountLogin();
|
| | | });
|
| | | GameNetSystem.Instance.BeginConnectCrossServer(ipBuf, gamePortBuf, OnGameServerConnected);
|
| | | NetLinkWin.Show();
|
| | | }
|
| | |
| | | {
|
| | | Clock.Stop(loginOverTimeClock);
|
| | | }
|
| | | |
| | |
|
| | | loginOverTimeClock = null;
|
| | | }
|
| | |
|
| | |
| | | if (chinModel != null)
|
| | | {
|
| | | ItemCellModel cellModel = new ItemCellModel(chinModel.ID, true, 0);
|
| | | shopItemCell.itemCell.button.enabled = false;
|
| | | shopItemCell.itemCell.Init(cellModel);
|
| | | shopItemCell.itemNameText.text = chinModel.ItemName;
|
| | | shopItemCell.itemNameText.color = UIHelper.GetUIColor(chinModel.ItemColor);
|
| | |
| | | public readonly LogicInt wannaBuyCount = new LogicInt(); |
| | | |
| | | StoreModel model { get { return ModelCenter.Instance.GetModel<StoreModel>(); } } |
| | | BuyShopItemLimit goodLimit; |
| | | |
| | | public void SetGood(int goodId) |
| | | { |
| | | this.goodId = goodId; |
| | | wannaBuyCount.value = 1; |
| | | goodLimit = model.GetBuyShopLimit((uint)goodId); |
| | | } |
| | | |
| | | public void SetBuyCount(int count) |
| | |
| | | canBuy = config.PurchaseNumber[0]; |
| | | } |
| | | |
| | | var goodLimit = model.GetBuyShopLimit((uint)goodId); |
| | | var haveBuy = goodLimit != null ? goodLimit.BuyCnt : 0; |
| | | return canBuy - haveBuy; |
| | | } |
| | |
| | | if (config != null)
|
| | | {
|
| | | ItemCellModel cellModel = new ItemCellModel(config.ID, true, 0,"", PackType.Deleted, true);
|
| | | shopItemCell.itemCell.button.enabled = false;
|
| | | shopItemCell.itemCell.Init(cellModel);
|
| | | shopItemCell.itemNameText.text = config.ItemName;
|
| | | shopItemCell.coinsIcon.SetIconWithMoneyType(shopInfo.MoneyType);
|
| | |
| | | if (chinModel != null)
|
| | | {
|
| | | ItemCellModel cellModel = new ItemCellModel(chinModel.ID,false, 0);
|
| | | shopItemCell.itemCell.enabled = false;
|
| | | shopItemCell.itemCell.Init(cellModel);
|
| | | shopItemCell.itemNameText.text = chinModel.ItemName;
|
| | | shopItemCell.itemNameText.color = UIHelper.GetUIColor(chinModel.ItemColor);
|