|
@@ -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()
|