Переглянути джерело

修改-在IOS不显示需要现金购买的技能

jet 8 роки тому
батько
коміт
4746d9bee6
3 змінених файлів з 64 додано та 18 видалено
  1. 15 0
      Assets/Script/Manage/ManaCenter.cs
  2. 47 18
      Assets/Script/Object/Skill/Pack.cs
  3. 2 0
      ToList.txt

+ 15 - 0
Assets/Script/Manage/ManaCenter.cs

@@ -564,6 +564,16 @@ public class ManaCenter : Regist
         {
             if (SkillList[i].SkillTab != SkillTab.Null)
             {
+                if (Application.platform == RuntimePlatform.IPhonePlayer) //todo 暂时关闭
+                {
+                    Pack pack = SkillList[i] as Pack;
+                    
+                    if (pack != null && pack.BuyCur == Current.Cash)
+                    {
+                        continue;
+                    }
+                }
+
                 ManaReso.GetSkillItem(SkillList[i]);
             }
         }
@@ -853,6 +863,11 @@ public class ManaCenter : Regist
                         {
                             TweenRoot tween = ManaReso.Get("K_Bubble0").GetTweenScale();
 
+                            if (Application.platform == RuntimePlatform.IPhonePlayer) //todo 暂时关闭
+                            {
+                                return;
+                            }
+
                             tween.AddEventOnetime
                             (
                                 EventType.BackwardFinish,

+ 47 - 18
Assets/Script/Object/Skill/Pack.cs

@@ -27,28 +27,28 @@ public class Pack : SkillRoot
         }
     }
 
-    protected int MinUseLv;
-    protected int MaxUseLv;
+    public int MinUseLv;
+    public int MaxUseLv;
 
-    protected float Person;
-    protected float SkillCD;
-    protected float UseAmt;
-    protected float CoinPerson;
-    protected float DiamondOnce;
-    protected string CoinFml;
+    public float Person;
+    public float SkillCD;
+    public float UseAmt;
+    public float CoinPerson;
+    public float DiamondOnce;
+    public string CoinFml;
 
-    protected float Plus;
-    protected float PersonBuff;
-    protected float SkillCdBuff;
+    public float Plus;
+    public float PersonBuff;
+    public float SkillCdBuff;
 
-    protected string Label;
-    protected string Anim;
-    protected string Flower;
+    public string Label;
+    public string Anim;
+    public string Flower;
 
-    protected string[] Flowers;
-    protected string[] Diamonds;
+    public string[] Flowers;
+    public string[] Diamonds;
 
-    protected Current BuyCur;
+    public  Current BuyCur;
 
     #endregion
 
@@ -158,6 +158,14 @@ public class Pack : SkillRoot
             return;
         }
 
+        if (Application.platform == RuntimePlatform.IPhonePlayer) //todo 暂时关闭
+        {
+            if (BuyCur == Current.Cash)
+            {
+                return;
+            }
+        }
+
         Level = int.Parse(attribute[3].Value);
         ItemStatus_ = (SkillStatus)Enum.Parse(typeof(SkillStatus), attribute[2].Value);
 
@@ -180,8 +188,29 @@ public class Pack : SkillRoot
         ItemStatus = ItemStatus;
     }
 
+    public override void RegistReference()
+    {
+        if (Application.platform == RuntimePlatform.IPhonePlayer) //todo 暂时关闭
+        {
+            if (BuyCur == Current.Cash) 
+            {
+                return;
+            }
+        }
+
+        base.RegistReference();
+    }
+
     public override void UpdateStatus()
     {
+        if (Application.platform == RuntimePlatform.IPhonePlayer) //todo 暂时关闭
+        {
+            if (BuyCur == Current.Cash)
+            {
+                return;
+            }
+        }
+
         if (!ManaCenter.Complete)
         {
             return;
@@ -292,7 +321,7 @@ public class Pack : SkillRoot
     {
         ManaAudio.PlayClip(Clip.BtnClip);
 
-        ManaCenter.Pay(ID, UseAmt, Current.Cash, PurchaseResult);
+        ManaCenter.Pay(ID, UseAmt, BuyCur, PurchaseResult);
     }
 
     protected void PurchaseResult()

+ 2 - 0
ToList.txt

@@ -3,6 +3,8 @@
 VerticalBestfit计算次数太多时性能低
 
 
+//todo 暂时关闭
+
 //还原PlayerConfig
 
 //关闭调试界面