|
@@ -60,6 +60,266 @@ public class Award
|
|
|
|
|
|
public void GetAward(int score)
|
|
|
{
|
|
|
+ if (Initializer.Tutorial)
|
|
|
+ {
|
|
|
+ TutorialAward(score);
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ RegularAward(score);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ private void TutorialAward(int score)
|
|
|
+ {
|
|
|
+ ManaReso.Get("Da_Info").TweenForCG();
|
|
|
+
|
|
|
+ ManaReso.SetActive("Da_Lab", false);
|
|
|
+ ManaReso.SetActive("Da_Quit", false);
|
|
|
+ ManaReso.SetActive("Da_Cancel", false);
|
|
|
+ ManaReso.SetActive("Da_VGroup", false);
|
|
|
+ ManaReso.SetActive("Da_HGroup", false);
|
|
|
+ ManaReso.SetActive("Da_ScoreTit", false);
|
|
|
+ ManaReso.SetActive("Da_GetAward", false);
|
|
|
+ ManaReso.SetActive("Da_FlowerGroup", false);
|
|
|
+ ManaReso.SetActive("Da_DiamondGroup", false);
|
|
|
+
|
|
|
+ bool diamondFlag = false;
|
|
|
+
|
|
|
+ int coin = (int)Auxiliary.FmlParse(CoinFml, "s", score.ToString());
|
|
|
+ coin = Mathf.FloorToInt(coin * (1 + ManaData.SkillPlus)) + BonusCoin;
|
|
|
+
|
|
|
+ ManaData.Coin += coin;
|
|
|
+
|
|
|
+
|
|
|
+ int diamond = 0;
|
|
|
+ float diamondRate = (float)Auxiliary.FmlParse(DiamondFml, "l", Mathf.Clamp(ManaData.Level, 1, 1000).ToString());
|
|
|
+
|
|
|
+ if (Random.Range(0, 1f) <= diamondRate)
|
|
|
+ {
|
|
|
+ diamondFlag = true;
|
|
|
+
|
|
|
+ ManaReso.SetActive("Da_Diamond", true);
|
|
|
+
|
|
|
+ diamond = Mathf.FloorToInt(Mathf.Lerp(DiamondMin, DiamondMax, Random.Range(0, 1f)) + BonusDiamond);
|
|
|
+
|
|
|
+ ManaData.Diamond += diamond;
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ if (BonusDiamond > 0)
|
|
|
+ {
|
|
|
+ diamondFlag = true;
|
|
|
+
|
|
|
+ ManaReso.SetActive("Da_Diamond", true);
|
|
|
+
|
|
|
+ ManaData.Diamond += BonusDiamond;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ int standard;
|
|
|
+
|
|
|
+ if (score < Standard[1])
|
|
|
+ {
|
|
|
+ standard = 0;
|
|
|
+ }
|
|
|
+ else if (score < Standard[2])
|
|
|
+ {
|
|
|
+ standard = 1;
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ standard = 2;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ FlowerInfo flowerInfo = ManaGarden.FlowerInfoList[0];
|
|
|
+
|
|
|
+ Vector2 newSize = flowerInfo.Sprite.rect.size;
|
|
|
+ newSize.x *= 0.2f;
|
|
|
+ newSize.y *= 0.2f;
|
|
|
+
|
|
|
+ ManaReso.Get<Image>("Da_FlowerIcon").sprite = flowerInfo.Sprite;
|
|
|
+ ManaReso.Get<Image>("Da_FlowerIcon").rectTransform.sizeDelta = newSize;
|
|
|
+
|
|
|
+ ManaReso.SetText("Da_FlowerLab", Language.GetStr("FlowerName", "Flower" + flowerInfo.ID));
|
|
|
+
|
|
|
+ BonusCoin = 0;
|
|
|
+ BonusDiamond = 0;
|
|
|
+
|
|
|
+
|
|
|
+ ManaReso.SetActive("Da_VGroup", true);
|
|
|
+ ManaReso.SetActive("Da_CoinGroup", true);
|
|
|
+
|
|
|
+ if (diamondFlag)
|
|
|
+ {
|
|
|
+ ManaReso.SetActive("Da_DiamondGroup", true);
|
|
|
+ }
|
|
|
+
|
|
|
+ ManaReso.SetActive("Da_FlowerGroup", true);
|
|
|
+
|
|
|
+ Auxiliary.Instance.DelayCall
|
|
|
+ (
|
|
|
+ () =>
|
|
|
+ {
|
|
|
+ ManaReso.SetActive("Da_FlowerGroup", false);
|
|
|
+ ManaReso.SetActive("Da_DiamondGroup", false);
|
|
|
+
|
|
|
+ ManaReso.Get("Da_VGroup").GetComponent<VerticalLayoutGroup>().enabled = false;
|
|
|
+ },
|
|
|
+ 1
|
|
|
+ );
|
|
|
+
|
|
|
+ Tween tween = ManaReso.Get("Da_Info").GetTweenCG();
|
|
|
+
|
|
|
+ tween.OnForwardFinish = () =>
|
|
|
+ {
|
|
|
+ ManaReso.SetActive("Da_HGroup", true);
|
|
|
+ ManaReso.Get("Da_Star1").TweenForScale();
|
|
|
+ };
|
|
|
+
|
|
|
+ ManaReso.SetText("Da_CoinLab", "");
|
|
|
+ ManaReso.SetText("Da_ScoreLab", "");
|
|
|
+ ManaReso.SetText("Da_DiamondLab", "");
|
|
|
+
|
|
|
+ ManaReso.Get("Da_CoinLab").CreateTweenNumber(0, coin, 1.5f, true, true, Curve.EaseOutQuad);
|
|
|
+ ManaReso.Get("Da_ScoreLab").CreateTweenNumber(0, score, 1.5f, true, true, Curve.EaseOutQuad);
|
|
|
+ ManaReso.Get("Da_DiamondLab").CreateTweenNumber(0, diamond, 1.5f, true, true, Curve.EaseOutQuad);
|
|
|
+
|
|
|
+ tween = ManaReso.Get("Da_ScoreTit").GetTweenText();
|
|
|
+ tween.InOrigin = true;
|
|
|
+
|
|
|
+ tween = ManaReso.Get("Da_Star3").GetTweenScale();
|
|
|
+ tween.InOrigin = true;
|
|
|
+ tween.OnForwardFinish = null;
|
|
|
+
|
|
|
+ tween = ManaReso.Get("Da_Star2").GetTweenScale();
|
|
|
+ tween.InOrigin = true;
|
|
|
+ tween.OnForwardFinish = null;
|
|
|
+
|
|
|
+ tween = ManaReso.Get("Da_Star1").GetTweenScale();
|
|
|
+ tween.InOrigin = true;
|
|
|
+ tween.OnForwardFinish = null;
|
|
|
+
|
|
|
+ if (standard == 0)
|
|
|
+ {
|
|
|
+ ManaReso.SetActive("Da_Star2", false);
|
|
|
+ ManaReso.SetActive("Da_Star3", false);
|
|
|
+ }
|
|
|
+ else if (standard == 1)
|
|
|
+ {
|
|
|
+ ManaReso.SetActive("Da_Star2", true);
|
|
|
+ ManaReso.SetActive("Da_Star3", false);
|
|
|
+
|
|
|
+ tween = ManaReso.Get("Da_Star1").GetTweenScale();
|
|
|
+
|
|
|
+ tween.OnForwardFinish += () =>
|
|
|
+ {
|
|
|
+ ManaReso.Get("Da_Star2").TweenForScale();
|
|
|
+ };
|
|
|
+
|
|
|
+ tween = ManaReso.Get("Da_Star2").GetTweenScale();
|
|
|
+ }
|
|
|
+ else if (standard == 2)
|
|
|
+ {
|
|
|
+ ManaReso.SetActive("Da_Star2", true);
|
|
|
+ ManaReso.SetActive("Da_Star3", true);
|
|
|
+
|
|
|
+ tween = ManaReso.Get("Da_Star1").GetTweenScale();
|
|
|
+
|
|
|
+ tween.OnForwardFinish += () =>
|
|
|
+ {
|
|
|
+ ManaReso.Get("Da_Star2").TweenForScale();
|
|
|
+ };
|
|
|
+
|
|
|
+ tween = ManaReso.Get("Da_Star2").GetTweenScale();
|
|
|
+
|
|
|
+ tween.OnForwardFinish += () =>
|
|
|
+ {
|
|
|
+ ManaReso.Get("Da_Star3").TweenForScale();
|
|
|
+ };
|
|
|
+
|
|
|
+ tween = ManaReso.Get("Da_Star3").GetTweenScale();
|
|
|
+ }
|
|
|
+
|
|
|
+ tween.OnForwardFinish = () =>
|
|
|
+ {
|
|
|
+ ManaReso.Get("Da_ScoreTit").TweenForText();
|
|
|
+ };
|
|
|
+
|
|
|
+ tween = ManaReso.Get("Da_ScoreTit").GetTweenText();
|
|
|
+
|
|
|
+ tween.OnForwardFinish = () =>
|
|
|
+ {
|
|
|
+ ManaReso.Get("Da_ScoreLab").TweenForNumber();
|
|
|
+ };
|
|
|
+
|
|
|
+ tween = ManaReso.Get("Da_ScoreLab").GetTweenNumber();
|
|
|
+
|
|
|
+ tween.OnForwardFinish = () =>
|
|
|
+ {
|
|
|
+ ManaReso.Get<CanvasGroup>("Da_VGroup").alpha = 1;
|
|
|
+ ManaReso.SetActive("Da_VGroup", true);
|
|
|
+
|
|
|
+ ManaReso.Get("Da_CoinGroup").TweenForScale();
|
|
|
+
|
|
|
+ if (diamondFlag)
|
|
|
+ {
|
|
|
+ ManaReso.Get("Da_DiamondGroup").TweenForScale();
|
|
|
+ }
|
|
|
+ };
|
|
|
+
|
|
|
+ tween = ManaReso.Get("Da_CoinGroup").GetTweenScale();
|
|
|
+
|
|
|
+ tween.OnForwardFinish = () =>
|
|
|
+ {
|
|
|
+ ManaReso.Get("Da_CoinLab").TweenForNumber();
|
|
|
+ };
|
|
|
+
|
|
|
+ tween = ManaReso.Get("Da_CoinLab").GetTweenNumber();
|
|
|
+
|
|
|
+ if (diamondFlag)
|
|
|
+ {
|
|
|
+ tween = ManaReso.Get("Da_DiamondGroup").GetTweenScale();
|
|
|
+
|
|
|
+ tween.OnForwardFinish = () =>
|
|
|
+ {
|
|
|
+ ManaReso.Get("Da_DiamondLab").TweenForNumber();
|
|
|
+ };
|
|
|
+
|
|
|
+ tween = ManaReso.Get("Da_DiamondLab").GetTweenNumber();
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ ManaReso.Get("Da_DiamondGroup").GetTweenScale().OnForwardFinish = () =>
|
|
|
+ {
|
|
|
+
|
|
|
+ };
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ tween = ManaReso.Get("Da_CoinLab").GetTweenNumber();
|
|
|
+
|
|
|
+ tween.OnForwardFinish = () =>
|
|
|
+ {
|
|
|
+ ManaReso.SetActive("Da_FlowerGroup", true);
|
|
|
+
|
|
|
+ ManaReso.Get("Da_FlowerGroup").TweenForScale();
|
|
|
+ };
|
|
|
+
|
|
|
+ tween = ManaReso.Get("Da_FlowerGroup").GetTweenScale();
|
|
|
+
|
|
|
+
|
|
|
+ tween.OnForwardFinish = () =>
|
|
|
+ {
|
|
|
+ ManaReso.Get("Da_GetAward").TweenForCG();
|
|
|
+ };
|
|
|
+ }
|
|
|
+
|
|
|
+ private void RegularAward(int score)
|
|
|
+ {
|
|
|
ManaReso.Get("Da_Info").TweenForCG();
|
|
|
|
|
|
ManaReso.SetActive("Da_Lab", false);
|
|
@@ -75,23 +335,23 @@ public class Award
|
|
|
bool flowerFlag = false;
|
|
|
bool diamondFlag = false;
|
|
|
|
|
|
- int coin = (int) Auxiliary.FmlParse(CoinFml, "s", score.ToString());
|
|
|
- coin = (int) (coin * (1 + ManaData.SkillPlus)) + BonusCoin;
|
|
|
-
|
|
|
+ int coin = (int)Auxiliary.FmlParse(CoinFml, "s", score.ToString());
|
|
|
+ coin = (int)(coin * (1 + ManaData.SkillPlus)) + BonusCoin;
|
|
|
+
|
|
|
ManaData.Coin += coin;
|
|
|
|
|
|
|
|
|
int diamond = 0;
|
|
|
- float diamondRate = (float) Auxiliary.FmlParse(DiamondFml, "l", Mathf.Clamp(ManaData.Level, 1, 1000).ToString());
|
|
|
-
|
|
|
+ float diamondRate = (float)Auxiliary.FmlParse(DiamondFml, "l", Mathf.Clamp(ManaData.Level, 1, 1000).ToString());
|
|
|
+
|
|
|
if (Random.Range(0, 1f) <= diamondRate)
|
|
|
{
|
|
|
diamondFlag = true;
|
|
|
|
|
|
ManaReso.SetActive("Da_Diamond", true);
|
|
|
|
|
|
- diamond = (int) Mathf.Lerp(DiamondMin, DiamondMax, Random.Range(0, 1f)) + BonusDiamond;
|
|
|
-
|
|
|
+ diamond = (int)Mathf.Lerp(DiamondMin, DiamondMax, Random.Range(0, 1f)) + BonusDiamond;
|
|
|
+
|
|
|
ManaData.Diamond += diamond;
|
|
|
}
|
|
|
else
|
|
@@ -123,8 +383,8 @@ public class Award
|
|
|
}
|
|
|
|
|
|
|
|
|
- float flowerRate = (float) Auxiliary.FmlParse(DiamondFml, "l", ManaData.Level.ToString(), "f", ManaGarden.MyFlower.ToString());
|
|
|
-
|
|
|
+ float flowerRate = (float)Auxiliary.FmlParse(DiamondFml, "l", ManaData.Level.ToString(), "f", ManaGarden.MyFlower.ToString());
|
|
|
+
|
|
|
if (Random.Range(0, 1f) <= flowerRate)
|
|
|
{
|
|
|
if (Random.Range(0, 1f) <= Odds[standard])
|
|
@@ -190,9 +450,9 @@ public class Award
|
|
|
},
|
|
|
1
|
|
|
);
|
|
|
-
|
|
|
+
|
|
|
Tween tween = ManaReso.Get("Da_Info").GetTweenCG();
|
|
|
-
|
|
|
+
|
|
|
tween.OnForwardFinish = () =>
|
|
|
{
|
|
|
ManaReso.SetActive("Da_HGroup", true);
|
|
@@ -321,7 +581,7 @@ public class Award
|
|
|
if (flowerFlag)
|
|
|
{
|
|
|
tween = ManaReso.Get("Da_CoinLab").GetTweenNumber();
|
|
|
-
|
|
|
+
|
|
|
tween.OnForwardFinish = () =>
|
|
|
{
|
|
|
ManaReso.SetActive("Da_FlowerGroup", true);
|
|
@@ -467,6 +727,7 @@ public class ManaMiniGame : Regist
|
|
|
private static float _PrepareTimer;
|
|
|
|
|
|
public static int MiniGameIndex;
|
|
|
+ public static bool TutorialValid = true;
|
|
|
public static bool DropDiamond;
|
|
|
public static List<DropGold> GoldList;
|
|
|
public static List<DropDiamond> DiamondList;
|
|
@@ -491,6 +752,18 @@ public class ManaMiniGame : Regist
|
|
|
|
|
|
private void FixedUpdate()
|
|
|
{
|
|
|
+ if (Initializer.Tutorial)
|
|
|
+ {
|
|
|
+ TutorialFixedUpdate();
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ RegularFixedUpdate();
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ private void TutorialFixedUpdate()
|
|
|
+ {
|
|
|
if (Pause)
|
|
|
{
|
|
|
return;
|
|
@@ -530,7 +803,142 @@ public class ManaMiniGame : Regist
|
|
|
if (DIamondTimer < 0)
|
|
|
{
|
|
|
DropDiamond = false;
|
|
|
-
|
|
|
+
|
|
|
+ DiamondList.Add(ManaReso.GetDiamond());
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ GameTimer -= Time.fixedDeltaTime;
|
|
|
+ if (GameTimer <= 0)
|
|
|
+ {
|
|
|
+ GameOver();
|
|
|
+
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ if (Panalty)
|
|
|
+ {
|
|
|
+ PanaltyTimer -= Time.fixedDeltaTime;
|
|
|
+
|
|
|
+ if (PanaltyTimer <= 0)
|
|
|
+ {
|
|
|
+ Panalty = false;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if (IdleList.Count > 0)
|
|
|
+ {
|
|
|
+ OpTimer -= Time.fixedDeltaTime;
|
|
|
+
|
|
|
+ if (OpTimer <= 0)
|
|
|
+ {
|
|
|
+ OpTime -= OpTime * 0.03f;
|
|
|
+
|
|
|
+ OpTimer = OpTime;
|
|
|
+
|
|
|
+ Flower flower = IdleList[Random.Range(0, IdleList.Count)];
|
|
|
+
|
|
|
+ flower.CreateOp(OpList.Count);
|
|
|
+
|
|
|
+ OpList.Add(flower);
|
|
|
+ IdleList.Remove(flower);
|
|
|
+
|
|
|
+ if (TutorialValid)
|
|
|
+ {
|
|
|
+ Pause = true;
|
|
|
+ TutorialValid = false;
|
|
|
+
|
|
|
+ if (OpList[0].OpType == OpType.Rip)
|
|
|
+ {
|
|
|
+ Tutorial.HightScreen(ManaReso.Get("D_RipArrow0"), ManaReso.Get("D_RipArrow1"), ManaReso.Get("D_Rip1"));
|
|
|
+
|
|
|
+ ManaReso.AddButtonEvent
|
|
|
+ (
|
|
|
+ "D_Rip2",
|
|
|
+ () =>
|
|
|
+ {
|
|
|
+ Pause = false;
|
|
|
+ Tutorial.HightDisable();
|
|
|
+ }
|
|
|
+ );
|
|
|
+ }
|
|
|
+ else if (OpList[0].OpType == OpType.Water)
|
|
|
+ {
|
|
|
+ Tutorial.HightScreen(ManaReso.Get("D_WaterArrow0"), ManaReso.Get("D_WaterArrow1"), ManaReso.Get("D_Water1"));
|
|
|
+
|
|
|
+ ManaReso.AddButtonEvent
|
|
|
+ (
|
|
|
+ "D_Water2",
|
|
|
+ () =>
|
|
|
+ {
|
|
|
+ Pause = false;
|
|
|
+ Tutorial.HightDisable();
|
|
|
+ }
|
|
|
+ );
|
|
|
+ }
|
|
|
+ else if (OpList[0].OpType == OpType.Fertilize)
|
|
|
+ {
|
|
|
+ Tutorial.HightScreen(ManaReso.Get("D_FertilizeArrow0"), ManaReso.Get("D_Fertilize2"), ManaReso.Get("D_Fertilize1"));
|
|
|
+
|
|
|
+ ManaReso.AddButtonEvent
|
|
|
+ (
|
|
|
+ "D_Fertilize2",
|
|
|
+ () =>
|
|
|
+ {
|
|
|
+ Pause = false;
|
|
|
+ Tutorial.HightDisable();
|
|
|
+ }
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ SceneMask.SetArea(OpList[0].OperateIcon.transform, 0.1f, 0.125f);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ private void RegularFixedUpdate()
|
|
|
+ {
|
|
|
+ if (Pause)
|
|
|
+ {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ if (Prepare)
|
|
|
+ {
|
|
|
+ PrepareTimer -= Time.fixedDeltaTime;
|
|
|
+
|
|
|
+ if (PrepareTimer <= 0)
|
|
|
+ {
|
|
|
+ GameBegin();
|
|
|
+
|
|
|
+ PrepareLab.text = Language.GetStr("UI", "D_PrepareLab");
|
|
|
+
|
|
|
+ PrepareLab.TweenForGra();
|
|
|
+ PrepareLab.TweenForText();
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if (Game == false)
|
|
|
+ {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ GoldTimer -= Time.fixedDeltaTime;
|
|
|
+ if (GoldTimer < 0)
|
|
|
+ {
|
|
|
+ GoldTimer = Random.Range(3f, 6f);
|
|
|
+
|
|
|
+ GoldList.Add(ManaReso.GetGold());
|
|
|
+ }
|
|
|
+
|
|
|
+ if (DropDiamond)
|
|
|
+ {
|
|
|
+ DIamondTimer -= Time.fixedDeltaTime;
|
|
|
+ if (DIamondTimer < 0)
|
|
|
+ {
|
|
|
+ DropDiamond = false;
|
|
|
+
|
|
|
DiamondList.Add(ManaReso.GetDiamond());
|
|
|
}
|
|
|
}
|
|
@@ -577,7 +985,7 @@ public class ManaMiniGame : Regist
|
|
|
public override void RegistValueA()
|
|
|
{
|
|
|
OpTime = 1.5f;
|
|
|
- GameTime = 45;
|
|
|
+ GameTime = 5;
|
|
|
PanaltyTime = 1;
|
|
|
|
|
|
OpTimer = OpTime;
|
|
@@ -598,6 +1006,12 @@ public class ManaMiniGame : Regist
|
|
|
};
|
|
|
}
|
|
|
|
|
|
+ public override void TutorialRegistValue()
|
|
|
+ {
|
|
|
+ RegistValueA();
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
public override void RegistReference()
|
|
|
{
|
|
|
TimerIcon = ManaReso.Get<Image>("D_TimerIcon");
|
|
@@ -607,12 +1021,6 @@ public class ManaMiniGame : Regist
|
|
|
PrepareLab = ManaReso.Get<Text>("D_PrepareLab");
|
|
|
}
|
|
|
|
|
|
-
|
|
|
- public override void TutorialRegistValue()
|
|
|
- {
|
|
|
- RegistValueA();
|
|
|
- }
|
|
|
-
|
|
|
public override void TutorialRegistReference()
|
|
|
{
|
|
|
RegistReference();
|
|
@@ -813,9 +1221,64 @@ public class ManaMiniGame : Regist
|
|
|
|
|
|
public static void GamePrepare()
|
|
|
{
|
|
|
+ if (Initializer.Tutorial)
|
|
|
+ {
|
|
|
+ TutorialPrepare();
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ RegularPrepare();
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ public static void ResetOperate()
|
|
|
+ {
|
|
|
+ if (OpList.Count >= 2)
|
|
|
+ {
|
|
|
+ OpList[0].SetFirstOp();
|
|
|
+ OpList[1].SetSecondOp();
|
|
|
+ }
|
|
|
+ else if (OpList.Count >= 1)
|
|
|
+ {
|
|
|
+ OpList[0].SetFirstOp();
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ private static void TutorialPrepare()
|
|
|
+ {
|
|
|
GoldList = new List<DropGold>();
|
|
|
DiamondList = new List<DropDiamond>();
|
|
|
-
|
|
|
+
|
|
|
+ ManaReso.SetText("Da_CoinLab", "");
|
|
|
+ ManaReso.SetText("Da_FlowerLab", "");
|
|
|
+ ManaReso.SetText("Da_DiamondLab", "");
|
|
|
+
|
|
|
+ ManaReso.SetActive("Da_Coin", true);
|
|
|
+ ManaReso.SetActive("Da_Flower", true);
|
|
|
+ ManaReso.SetActive("Da_Diamond", true);
|
|
|
+
|
|
|
+ ManaGarden.AwardLock = true;
|
|
|
+
|
|
|
+ OpList = new List<Flower>();
|
|
|
+ IdleList = new List<Flower>();
|
|
|
+ IdleList.Add(ManaReso.GetFlower(ManaGarden.FlowerInfoList[0], ManaReso.Get("SlotMini1")));
|
|
|
+ IdleList.Add(ManaReso.GetFlower(ManaGarden.FlowerInfoList[0], ManaReso.Get("SlotMini2")));
|
|
|
+ IdleList.Add(ManaReso.GetFlower(ManaGarden.FlowerInfoList[0], ManaReso.Get("SlotMini3")));
|
|
|
+ IdleList.Add(ManaReso.GetFlower(ManaGarden.FlowerInfoList[0], ManaReso.Get("SlotMini4")));
|
|
|
+ IdleList.Add(ManaReso.GetFlower(ManaGarden.FlowerInfoList[0], ManaReso.Get("SlotMini5")));
|
|
|
+ IdleList.Add(ManaReso.GetFlower(ManaGarden.FlowerInfoList[0], ManaReso.Get("SlotMini6")));
|
|
|
+ IdleList.Add(ManaReso.GetFlower(ManaGarden.FlowerInfoList[0], ManaReso.Get("SlotMini7")));
|
|
|
+ IdleList.Add(ManaReso.GetFlower(ManaGarden.FlowerInfoList[0], ManaReso.Get("SlotMini8")));
|
|
|
+ IdleList.Add(ManaReso.GetFlower(ManaGarden.FlowerInfoList[0], ManaReso.Get("SlotMini9")));
|
|
|
+ }
|
|
|
+
|
|
|
+ private static void RegularPrepare()
|
|
|
+ {
|
|
|
+
|
|
|
+ GoldList = new List<DropGold>();
|
|
|
+ DiamondList = new List<DropDiamond>();
|
|
|
+
|
|
|
ManaReso.SetText("Da_CoinLab", "");
|
|
|
ManaReso.SetText("Da_FlowerLab", "");
|
|
|
ManaReso.SetText("Da_DiamondLab", "");
|
|
@@ -837,20 +1300,7 @@ public class ManaMiniGame : Regist
|
|
|
IdleList.Add(ManaReso.GetFlower(ManaGarden.FlowerInfoList[6], ManaReso.Get("SlotMini7")));
|
|
|
IdleList.Add(ManaReso.GetFlower(ManaGarden.FlowerInfoList[7], ManaReso.Get("SlotMini8")));
|
|
|
IdleList.Add(ManaReso.GetFlower(ManaGarden.FlowerInfoList[8], ManaReso.Get("SlotMini9")));
|
|
|
- }
|
|
|
-
|
|
|
- public static void ResetOperate()
|
|
|
- {
|
|
|
- if (OpList.Count >= 2)
|
|
|
- {
|
|
|
- OpList[0].SetFirstOp();
|
|
|
- OpList[1].SetSecondOp();
|
|
|
- }
|
|
|
- else if (OpList.Count >= 1)
|
|
|
- {
|
|
|
- OpList[0].SetFirstOp();
|
|
|
- }
|
|
|
- }
|
|
|
+ }
|
|
|
|
|
|
#endregion
|
|
|
}
|