Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
| | |
| | |
|
| | | private void OnApplicationQuit()
|
| | | {
|
| | | if (MaterialUtility.hudMaterial != null)
|
| | | if (MaterialUtility.m_HudMaterial != null)
|
| | | {
|
| | | MaterialUtility.hudMaterial.SetTexture("_Tex1", null);
|
| | | MaterialUtility.hudMaterial.SetTexture("_Tex2", null);
|
| | | MaterialUtility.m_HudMaterial.SetTexture("_Tex1", null);
|
| | | MaterialUtility.m_HudMaterial.SetTexture("_Tex2", null);
|
| | | }
|
| | |
|
| | | GameNetSystem.Instance.Disconnect();
|
| | |
| | | DemonJarModel model { get { return ModelCenter.Instance.GetModel<DemonJarModel>(); } } |
| | | FindPreciousModel findPreciousModel { get { return ModelCenter.Instance.GetModel<FindPreciousModel>(); } } |
| | | DungeonModel dungeonModel { get { return ModelCenter.Instance.GetModel<DungeonModel>(); } } |
| | | CrossServerOneVsOneModel crossServerOneVsOneModel { get { return ModelCenter.Instance.GetModel<CrossServerOneVsOneModel>(); } } |
| | | |
| | | float timer = 0f; |
| | | float lastTouchTime = 0f; |
| | |
| | | |
| | | timer = 0f; |
| | | |
| | | if (crossServerOneVsOneModel.IsMatching) |
| | | { |
| | | return; |
| | | } |
| | | |
| | | if (CrossServerLogin.Instance.IsEnterCrossServerPreparing()) |
| | | { |
| | | return; |
| | |
| | | }
|
| | | }
|
| | | }
|
| | | private const int Redpoint_key1 = 1010301;
|
| | | private const int Redpoint_key1 = 1050101;
|
| | | public Redpoint redPointStre1 = new Redpoint(MainRedDot.RedPoint_MountPackKey, Redpoint_key1);//坐骑外观
|
| | | private const int Redpoint_key2 = 1050102;
|
| | | public Redpoint redPointStre2 = new Redpoint(MainRedDot.RedPoint_MountPackKey, Redpoint_key2);//坐骑兽魂
|
| | |
| | | for (int i = 0; i < appointmentInfo.GoodsCount; i++)
|
| | | {
|
| | | var saleItemInfo = appointmentInfo.GoodsList[i];
|
| | | if (appointmentInfo.GoodsCount < 2 && saleItemInfo.State == 1)
|
| | | if (appointmentInfo.GoodsCount < 2 |
| | | && saleItemInfo.State == 1
|
| | | && appointmentInfo.IsAll != 1)
|
| | | {
|
| | | SysNotifyMgr.Instance.ShowTip("FlashRushToBuy1");
|
| | | }
|
| | |
| | | int fullSeverRemain = 0;
|
| | | int personalRemain = 0;
|
| | | int sellState = GetSellSate(out fullSeverRemain,out personalRemain);
|
| | | string fullSeverRemainStr = fullSeverRemain > 0 ? fullSeverRemain.ToString() : UIHelper.AppendStringColor(TextColType.Red, fullSeverRemain.ToString());
|
| | | string personalRemainStr = personalRemain > 0 ? personalRemain.ToString() : UIHelper.AppendStringColor(TextColType.Red, personalRemain.ToString());
|
| | | string fullSeverRemainStr = fullSeverRemain > 0 ? UIHelper.AppendStringColor(TextColType.Green, fullSeverRemain.ToString(),true) : UIHelper.AppendStringColor(TextColType.Red, fullSeverRemain.ToString());
|
| | | string personalRemainStr = personalRemain > 0 ? UIHelper.AppendStringColor(TextColType.Green, personalRemain.ToString(),true) : UIHelper.AppendStringColor(TextColType.Red, personalRemain.ToString());
|
| | | fullServerRemainNum.text = fullSeverRemainStr;
|
| | | personalRemainNum.text = personalRemainStr;
|
| | | switch (sellState)
|
| | |
| | | return;
|
| | | }
|
| | |
|
| | | if (_source) |
| | | { |
| | | return; |
| | | }
|
| | |
|
| | | AudioClip clip = null;
|
| | | if (!commonUseAudioClipDict.TryGetValue(_audioId, out clip))
|
| | | {
|
| | |
| | | {
|
| | | if (Mathf.Abs(_texture.width - ResolutionUtility.currentResolution.x) > 10 || Mathf.Abs(_texture.height - ResolutionUtility.currentResolution.y) > 10)
|
| | | {
|
| | | Resources.UnloadAsset(_texture);
|
| | | //Resources.UnloadAsset(_texture);
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | } |
| | | |
| | | |
| | | static Material m_HudMaterial; |
| | | public static Material m_HudMaterial; |
| | | public static Material hudMaterial { |
| | | get { |
| | | if (m_HudMaterial == null) |