|
@@ -17,6 +17,15 @@ public class Award
|
|
|
public static int BonusCoin;
|
|
|
public static int BonusDiamond;
|
|
|
public static string Info;
|
|
|
+
|
|
|
+ public int Rate;
|
|
|
+ public int Coin;
|
|
|
+ public int Score;
|
|
|
+ public int Diamond;
|
|
|
+ public bool FlowerFlag;
|
|
|
+ public bool DiamondFlag;
|
|
|
+
|
|
|
+ #region 配置
|
|
|
|
|
|
public static int FlowerID;
|
|
|
public static bool FlowerLock;
|
|
@@ -33,35 +42,35 @@ public class Award
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
+ #endregion
|
|
|
+
|
|
|
public void GetAward(int score)
|
|
|
{
|
|
|
#region 获得奖励
|
|
|
|
|
|
#region Rate
|
|
|
|
|
|
- int rate;
|
|
|
+ Score = (int)Mathf.Clamp(score, 1, Mathf.Infinity);
|
|
|
|
|
|
- score = (int)Mathf.Clamp(score, 1, Mathf.Infinity);
|
|
|
-
|
|
|
- if (score < Standard[1])
|
|
|
+ if (Score < Standard[1])
|
|
|
{
|
|
|
- rate = 0;
|
|
|
+ Rate = 0;
|
|
|
}
|
|
|
- else if (score < Standard[2])
|
|
|
+ else if (Score < Standard[2])
|
|
|
{
|
|
|
- rate = 1;
|
|
|
+ Rate = 1;
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- rate = 2;
|
|
|
+ Rate = 2;
|
|
|
}
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
#region Reset
|
|
|
|
|
|
- bool flowerFlag = false;
|
|
|
- bool diamondFlag = false;
|
|
|
+ FlowerFlag = false;
|
|
|
+ DiamondFlag = false;
|
|
|
|
|
|
#endregion
|
|
|
|
|
@@ -70,46 +79,63 @@ public class Award
|
|
|
|
|
|
#region Coin
|
|
|
|
|
|
- int coin = (int)Auxiliary.FmlParse(CoinFml, "s", score.ToString(), "l", Mathf.Clamp(ManaCenter.Level, 1, 9999).ToString());
|
|
|
- coin = (int)(coin * (1 + ManaCenter.SkillPlus) + BonusCoin);
|
|
|
- coin = (int) Mathf.Clamp(coin, 1, Mathf.Infinity);
|
|
|
+ Coin = (int)Auxiliary.FmlParse(CoinFml, "s", Score.ToString(), "l", Mathf.Clamp(ManaCenter.Level, 1, 9999).ToString());
|
|
|
+ Coin = (int)(Coin * (1 + ManaCenter.SkillPlus) + BonusCoin);
|
|
|
+ Coin = (int) Mathf.Clamp(Coin, 1, Mathf.Infinity);
|
|
|
+
|
|
|
+ ManaReso.Get<Text>("Da_CoinLab").text = Coin.ToString();
|
|
|
+ ManaReso.Get<Text>("Da_CoinLab").Resize(true, false);
|
|
|
+ ManaReso.Get<ContentSizeFitter>("Da_CoinGroup").enabled = true;
|
|
|
|
|
|
- ManaCenter.Coin += coin;
|
|
|
+ ManaReso.SetActive("Da_CoinLab", true);
|
|
|
|
|
|
- sb.AppendFormat("{0}{1}{2} ", Language.GetStr("UI", "J_Info0"), "<(金币)>", coin);
|
|
|
+ ManaCenter.Coin += Coin;
|
|
|
+
|
|
|
+ sb.AppendFormat("{0}{1}{2} ", Language.GetStr("UI", "J_Info0"), "<(金币)>", Coin);
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
#region Diamond
|
|
|
|
|
|
- int diamond = 0;
|
|
|
float diamondRate = (float)Auxiliary.FmlParse(DiamondFml, "l", Mathf.Clamp(ManaCenter.Level, 1, 1000).ToString());
|
|
|
|
|
|
if (Random.Range(0, 1f) <= diamondRate)
|
|
|
{
|
|
|
- diamondFlag = true;
|
|
|
+ DiamondFlag = true;
|
|
|
+
|
|
|
+ Diamond = (int)(Mathf.Lerp(DiamondMin, DiamondMax, Random.Range(0, 1f)) + BonusDiamond);
|
|
|
+
|
|
|
+ ManaReso.Get<Text>("Da_DiamondLab").text = Diamond.ToString();
|
|
|
+ ManaReso.Get<Text>("Da_DiamondLab").Resize(true, false);
|
|
|
+ ManaReso.Get<ContentSizeFitter>("Da_DiamondGroup").enabled = true;
|
|
|
|
|
|
- diamond = (int)(Mathf.Lerp(DiamondMin, DiamondMax, Random.Range(0, 1f)) + BonusDiamond);
|
|
|
+ ManaReso.SetActive("Da_DiamondLab", true);
|
|
|
|
|
|
- ManaCenter.Diamond += diamond;
|
|
|
+ ManaCenter.Diamond += Diamond;
|
|
|
|
|
|
ManaReso.SetActive("Da_Diamond", true);
|
|
|
|
|
|
- sb.AppendFormat("{0}{1}{2} ", Language.GetStr("UI", "J_Info0"), "<(钻石)>", diamond);
|
|
|
+ sb.AppendFormat("{0}{1}{2} ", Language.GetStr("UI", "J_Info0"), "<(钻石)>", Diamond);
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
if (BonusDiamond > 0)
|
|
|
{
|
|
|
- diamondFlag = true;
|
|
|
+ DiamondFlag = true;
|
|
|
+
|
|
|
+ Diamond = BonusDiamond;
|
|
|
+
|
|
|
+ ManaReso.Get<Text>("Da_DiamondLab").text = Diamond.ToString();
|
|
|
+ ManaReso.Get<Text>("Da_DiamondLab").Resize(true, false);
|
|
|
+ ManaReso.Get<ContentSizeFitter>("Da_DiamondGroup").enabled = true;
|
|
|
|
|
|
- diamond = BonusDiamond;
|
|
|
+ ManaReso.SetActive("Da_DiamondLab", true);
|
|
|
|
|
|
- ManaCenter.Diamond += diamond;
|
|
|
+ ManaCenter.Diamond += Diamond;
|
|
|
|
|
|
ManaReso.SetActive("Da_Diamond", true);
|
|
|
|
|
|
- sb.AppendFormat("{0}{1}{2} ", Language.GetStr("UI", "J_Info0"), "<(钻石)>", diamond);
|
|
|
+ sb.AppendFormat("{0}{1}{2} ", Language.GetStr("UI", "J_Info0"), "<(钻石)>", Diamond);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -119,14 +145,14 @@ public class Award
|
|
|
|
|
|
if (ManaTutorial.TutorialA)
|
|
|
{
|
|
|
- flowerFlag = true;
|
|
|
+ FlowerFlag = true;
|
|
|
|
|
|
FlowerInfo flowerInfo = ManaGarden.FlowerInfoDic[1];
|
|
|
|
|
|
ManaReso.SetActive("Da_FlowerIcon", true);
|
|
|
|
|
|
ManaReso.Get<Image>("Da_FlowerIcon").sprite = flowerInfo.Icon;
|
|
|
- ManaReso.Get<Image>("Da_FlowerIcon").Resize(0.2f, 0.2f);
|
|
|
+ ManaReso.Get<Image>("Da_FlowerIcon").Resize(true, 0.2f, 0.2f);
|
|
|
|
|
|
ManaReso.SetText("Da_FlowerLab", flowerInfo.Name);
|
|
|
|
|
@@ -136,9 +162,9 @@ public class Award
|
|
|
{
|
|
|
if (!FlowerLock)
|
|
|
{
|
|
|
- flowerFlag = true;
|
|
|
+ FlowerFlag = true;
|
|
|
|
|
|
- if (Random.Range(0, 1f) <= Odds[rate])
|
|
|
+ if (Random.Range(0, 1f) <= Odds[Rate])
|
|
|
{
|
|
|
FlowerInfo flowerInfo = ManaGarden.FlowerInfoDic[FlowerID];
|
|
|
|
|
@@ -148,7 +174,7 @@ public class Award
|
|
|
ManaReso.SetActive("Da_Flower", true);
|
|
|
|
|
|
ManaReso.Get<Image>("Da_FlowerIcon").sprite = flowerInfo.Icon;
|
|
|
- ManaReso.Get<Image>("Da_FlowerIcon").Resize(0.2f, 0.2f);
|
|
|
+ ManaReso.Get<Image>("Da_FlowerIcon").Resize(true, 0.2f, 0.2f);
|
|
|
|
|
|
ManaReso.SetText("Da_FlowerLab", flowerInfo.Name);
|
|
|
|
|
@@ -172,12 +198,39 @@ public class Award
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
+ ManaReso.Get("Da_Info").TweenForCG();
|
|
|
+
|
|
|
+ //Auxiliary.Instance.DelayCall
|
|
|
+ // (
|
|
|
+ // () =>
|
|
|
+ // {
|
|
|
+ // Debug.LogError("");
|
|
|
+ // },
|
|
|
+ // 1
|
|
|
+ // );
|
|
|
+
|
|
|
+ Auxiliary.Instance.DelayCall
|
|
|
+ (
|
|
|
+ () =>
|
|
|
+ {
|
|
|
+ ManaReso.Get<Text>("Da_CoinLab").SetLayoutDirty();
|
|
|
+ ManaReso.Get<Text>("Da_DiamondLab").SetLayoutDirty();
|
|
|
+
|
|
|
+ ManaReso.Get<ContentSizeFitter>("Da_CoinGroup").enabled = false;
|
|
|
+ ManaReso.Get<ContentSizeFitter>("Da_DiamondGroup").enabled = false;
|
|
|
+
|
|
|
+ InitializeAnim();
|
|
|
+ },
|
|
|
+ 2
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ public void InitializeAnim()
|
|
|
+ {
|
|
|
#region 构造动画
|
|
|
|
|
|
#region Reset
|
|
|
|
|
|
- ManaReso.Get("Da_Info").TweenForCG();
|
|
|
-
|
|
|
ManaReso.SetText("Da_Tit", Language.GetStr("UI", "Da_Tit1"));
|
|
|
ManaReso.SetText("Da_CoinLab", "0");
|
|
|
ManaReso.SetText("Da_DiamondLab", "0");
|
|
@@ -193,16 +246,16 @@ public class Award
|
|
|
ManaReso.SetActive("Da_DiamondLab", false);
|
|
|
|
|
|
ManaReso.SetActive("Da_VGroup", true);
|
|
|
- ManaReso.SetActive("Da_HGroup", false);
|
|
|
+ ManaReso.SetActive("Da_HGroup1", false);
|
|
|
ManaReso.SetActive("Da_FlowerGroup", false);
|
|
|
ManaReso.SetActive("Da_DiamondGroup", false);
|
|
|
|
|
|
- if (flowerFlag)
|
|
|
+ if (FlowerFlag)
|
|
|
{
|
|
|
ManaReso.SetActive("Da_FlowerGroup", true);
|
|
|
}
|
|
|
|
|
|
- if (diamondFlag)
|
|
|
+ if (DiamondFlag)
|
|
|
{
|
|
|
ManaReso.SetActive("Da_DiamondGroup", true);
|
|
|
}
|
|
@@ -221,15 +274,15 @@ public class Award
|
|
|
);
|
|
|
|
|
|
|
|
|
- float timeCoin = Mathf.Lerp(0, 1.5f, Mathf.Clamp01(coin / 15f));
|
|
|
- float timeScore = Mathf.Lerp(0, 1.5f, Mathf.Clamp01(score / 50f));
|
|
|
- float timeDiamond = Mathf.Lerp(0, 1.5f, Mathf.Clamp01(diamond / 15f));
|
|
|
+ float timeCoin = Mathf.Lerp(0, 1.5f, Mathf.Clamp01(Coin / 15f));
|
|
|
+ float timeScore = Mathf.Lerp(0, 1.5f, Mathf.Clamp01(Score / 50f));
|
|
|
+ float timeDiamond = Mathf.Lerp(0, 1.5f, Mathf.Clamp01(Diamond / 15f));
|
|
|
|
|
|
float time = Mathf.Max(timeCoin, timeDiamond);
|
|
|
-
|
|
|
- ManaReso.Get("Da_CoinLab").CreateTweenNumber(0, coin, time, false, true, Curve.EaseOutQuad);
|
|
|
- ManaReso.Get("Da_ScoreLab").CreateTweenNumber(0, score, timeScore, false, true, Curve.EaseOutQuad);
|
|
|
- ManaReso.Get("Da_DiamondLab").CreateTweenNumber(0, diamond, time, false, true, Curve.EaseOutQuad);
|
|
|
+
|
|
|
+ ManaReso.Get("Da_CoinLab").CreateTweenNumber(0, Coin, time, false, true, Curve.EaseOutQuad);
|
|
|
+ ManaReso.Get("Da_ScoreLab").CreateTweenNumber(0, Score, timeScore, false, true, Curve.EaseOutQuad);
|
|
|
+ ManaReso.Get("Da_DiamondLab").CreateTweenNumber(0, Diamond, time, false, true, Curve.EaseOutQuad);
|
|
|
|
|
|
#endregion
|
|
|
|
|
@@ -238,7 +291,7 @@ public class Award
|
|
|
|
|
|
TweenRoot tween;
|
|
|
|
|
|
- if (flowerFlag)
|
|
|
+ if (FlowerFlag)
|
|
|
{
|
|
|
tween = ManaReso.Get("Da_CoinLab").GetTweenNumber();
|
|
|
|
|
@@ -256,7 +309,7 @@ public class Award
|
|
|
|
|
|
#region 按钮
|
|
|
|
|
|
- if (flowerFlag)
|
|
|
+ if (FlowerFlag)
|
|
|
{
|
|
|
tween = ManaReso.Get("Da_FlowerGroup").GetTweenScale();
|
|
|
|
|
@@ -310,15 +363,15 @@ public class Award
|
|
|
|
|
|
#region 得分
|
|
|
|
|
|
- if (rate == 0)
|
|
|
+ if (Rate == 0)
|
|
|
{
|
|
|
tween = ManaReso.Get("Da_Star1").GetTweenScale();
|
|
|
}
|
|
|
- else if (rate == 1)
|
|
|
+ else if (Rate == 1)
|
|
|
{
|
|
|
tween = ManaReso.Get("Da_Star2").GetTweenScale();
|
|
|
}
|
|
|
- else if (rate == 2)
|
|
|
+ else if (Rate == 2)
|
|
|
{
|
|
|
tween = ManaReso.Get("Da_Star3").GetTweenScale();
|
|
|
}
|
|
@@ -367,17 +420,17 @@ public class Award
|
|
|
{
|
|
|
ManaReso.Get("Da_Star1").TweenReForScale();
|
|
|
|
|
|
- ManaReso.SetActive("Da_HGroup", true);
|
|
|
+ ManaReso.SetActive("Da_HGroup1", true);
|
|
|
}
|
|
|
);
|
|
|
|
|
|
|
|
|
- if (rate == 0)
|
|
|
+ if (Rate == 0)
|
|
|
{
|
|
|
ManaReso.SetActive("Da_Star2", false);
|
|
|
ManaReso.SetActive("Da_Star3", false);
|
|
|
}
|
|
|
- else if (rate == 1)
|
|
|
+ else if (Rate == 1)
|
|
|
{
|
|
|
ManaReso.SetActive("Da_Star2", true);
|
|
|
ManaReso.SetActive("Da_Star3", false);
|
|
@@ -394,7 +447,7 @@ public class Award
|
|
|
}
|
|
|
);
|
|
|
}
|
|
|
- else if (rate == 2)
|
|
|
+ else if (Rate == 2)
|
|
|
{
|
|
|
ManaReso.SetActive("Da_Star2", true);
|
|
|
ManaReso.SetActive("Da_Star3", true);
|
|
@@ -437,7 +490,7 @@ public class Award
|
|
|
{
|
|
|
ManaReso.Get("Da_CoinGroup").TweenReForScale();
|
|
|
|
|
|
- if (diamondFlag)
|
|
|
+ if (DiamondFlag)
|
|
|
{
|
|
|
ManaReso.Get("Da_DiamondGroup").TweenReForScale();
|
|
|
}
|
|
@@ -455,7 +508,7 @@ public class Award
|
|
|
}
|
|
|
);
|
|
|
|
|
|
- if (diamondFlag)
|
|
|
+ if (DiamondFlag)
|
|
|
{
|
|
|
tween = ManaReso.Get("Da_DiamondGroup").GetTweenScale();
|
|
|
|
|
@@ -836,30 +889,6 @@ public class ManaMiniGame : Regist
|
|
|
}
|
|
|
|
|
|
|
|
|
- public static void Fade()
|
|
|
- {
|
|
|
- for (int i = 0; i < IndexList.Count; i++)
|
|
|
- {
|
|
|
- Flower flower = FlowerDic[IndexList[i]];
|
|
|
-
|
|
|
- if (FadeList.UniqueAdd(flower))
|
|
|
- {
|
|
|
- IdleList.Remove(flower);
|
|
|
-
|
|
|
- flower.PlayParticle();
|
|
|
-
|
|
|
- flower.FlowerIcon.TweenForSr();
|
|
|
-
|
|
|
- if (FadeList.Count == 6)
|
|
|
- {
|
|
|
- RoundBegin();
|
|
|
- }
|
|
|
-
|
|
|
- break;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
public static void Operate(int index)
|
|
|
{
|
|
|
if (Panalty || !FadeList.Valid())
|
|
@@ -874,8 +903,19 @@ public class ManaMiniGame : Regist
|
|
|
|
|
|
if (index == IndexList[0])
|
|
|
{
|
|
|
+ int uiIndex = IndexMap(IndexList[0]);
|
|
|
+
|
|
|
+ ManaReso.Get<Image>("D_FlowerBtn" + uiIndex).material = Shortcut.GrayMat;
|
|
|
+
|
|
|
+ ManaReso.Get<Button>("D_FlowerBtn" + uiIndex).interactable = false;
|
|
|
+
|
|
|
+ ManaReso.Get<Image>("D_FlowerIcon" + uiIndex).material = Shortcut.GrayMat;
|
|
|
+
|
|
|
+ ManaReso.SetActive("D_FlowerTick" + uiIndex, true);
|
|
|
+
|
|
|
IndexList.RemoveAt(0);
|
|
|
|
|
|
+
|
|
|
Flower flower = FlowerDic[index];
|
|
|
|
|
|
ManaReso.GetHudText("+45", Color.white, 90, flower.ChildDic["ScorePosTra"], ManaReso.Get("D_MiniGame"), true);
|
|
@@ -941,6 +981,37 @@ public class ManaMiniGame : Regist
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ public static void ResetOprerate()
|
|
|
+ {
|
|
|
+ ManaReso.Get<Image>("D_FlowerBtn1").material = null;
|
|
|
+ ManaReso.Get<Image>("D_FlowerBtn2").material = null;
|
|
|
+ ManaReso.Get<Image>("D_FlowerBtn3").material = null;
|
|
|
+ ManaReso.Get<Image>("D_FlowerBtn4").material = null;
|
|
|
+ ManaReso.Get<Image>("D_FlowerBtn5").material = null;
|
|
|
+ ManaReso.Get<Image>("D_FlowerBtn6").material = null;
|
|
|
+
|
|
|
+ ManaReso.Get<Button>("D_FlowerBtn1").interactable = true;
|
|
|
+ ManaReso.Get<Button>("D_FlowerBtn2").interactable = true;
|
|
|
+ ManaReso.Get<Button>("D_FlowerBtn3").interactable = true;
|
|
|
+ ManaReso.Get<Button>("D_FlowerBtn4").interactable = true;
|
|
|
+ ManaReso.Get<Button>("D_FlowerBtn5").interactable = true;
|
|
|
+ ManaReso.Get<Button>("D_FlowerBtn6").interactable = true;
|
|
|
+
|
|
|
+ ManaReso.Get<Image>("D_FlowerIcon1").material = null;
|
|
|
+ ManaReso.Get<Image>("D_FlowerIcon2").material = null;
|
|
|
+ ManaReso.Get<Image>("D_FlowerIcon3").material = null;
|
|
|
+ ManaReso.Get<Image>("D_FlowerIcon4").material = null;
|
|
|
+ ManaReso.Get<Image>("D_FlowerIcon5").material = null;
|
|
|
+ ManaReso.Get<Image>("D_FlowerIcon6").material = null;
|
|
|
+
|
|
|
+ ManaReso.SetActive("D_FlowerTick1", false);
|
|
|
+ ManaReso.SetActive("D_FlowerTick2", false);
|
|
|
+ ManaReso.SetActive("D_FlowerTick3", false);
|
|
|
+ ManaReso.SetActive("D_FlowerTick4", false);
|
|
|
+ ManaReso.SetActive("D_FlowerTick5", false);
|
|
|
+ ManaReso.SetActive("D_FlowerTick6", false);
|
|
|
+ }
|
|
|
+
|
|
|
public static void CreateOperate()
|
|
|
{
|
|
|
ManaAudio.PlayClip(Clip.BubbleClip);
|
|
@@ -982,6 +1053,63 @@ public class ManaMiniGame : Regist
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ public static void Fade()
|
|
|
+ {
|
|
|
+ for (int i = 0; i < IndexList.Count; i++)
|
|
|
+ {
|
|
|
+ Flower flower = FlowerDic[IndexList[i]];
|
|
|
+
|
|
|
+ if (FadeList.UniqueAdd(flower))
|
|
|
+ {
|
|
|
+ IdleList.Remove(flower);
|
|
|
+
|
|
|
+ flower.PlayParticle();
|
|
|
+
|
|
|
+ flower.FlowerIcon.TweenForSr();
|
|
|
+
|
|
|
+ if (FadeList.Count == 6)
|
|
|
+ {
|
|
|
+ RoundBegin();
|
|
|
+ }
|
|
|
+
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ public static void InitializeMode()
|
|
|
+ {
|
|
|
+ GameA = false;
|
|
|
+ GameB = false;
|
|
|
+
|
|
|
+ D_Operate1.SetActive(false);
|
|
|
+ D_Operate2.SetActive(false);
|
|
|
+
|
|
|
+ if (ManaCenter.Level >= 18)
|
|
|
+ {
|
|
|
+ if (ManaTutorial.TutorialB)
|
|
|
+ {
|
|
|
+ GameB = true;
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ if (Random.Range(0f, 1f) <= 0.5f)
|
|
|
+ {
|
|
|
+ GameB = true;
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ GameA = true;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ GameA = true;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
public static void InitializeAward()
|
|
|
{
|
|
|
float flowerRate = (float)Auxiliary.FmlParse(Award.FlowerFml, "l", ManaCenter.Level.ToString(), "f", ManaGarden.MyFlower.ToString());
|
|
@@ -1013,32 +1141,6 @@ public class ManaMiniGame : Regist
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public static void InitializeMode()
|
|
|
- {
|
|
|
- GameA = false;
|
|
|
- GameB = false;
|
|
|
-
|
|
|
- D_Operate1.SetActive(false);
|
|
|
- D_Operate2.SetActive(false);
|
|
|
-
|
|
|
- GameA = true;
|
|
|
- //if (ManaCenter.Level >= 18)
|
|
|
- //{
|
|
|
- // if (Random.Range(0f, 1f) <= 0.5f)
|
|
|
- // {
|
|
|
- // GameB = true;
|
|
|
- // }
|
|
|
- // else
|
|
|
- // {
|
|
|
- // GameA = true;
|
|
|
- // }
|
|
|
- //}
|
|
|
- //else
|
|
|
- //{
|
|
|
- // GameA = true;
|
|
|
- //}
|
|
|
- }
|
|
|
-
|
|
|
|
|
|
public static void GameEnd()
|
|
|
{
|
|
@@ -1115,6 +1217,11 @@ public class ManaMiniGame : Regist
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ if (ManaTutorial.TutorialB)
|
|
|
+ {
|
|
|
+ InitializeMode();
|
|
|
+ }
|
|
|
+
|
|
|
if (GameA)
|
|
|
{
|
|
|
GameEnterA();
|
|
@@ -1212,6 +1319,10 @@ public class ManaMiniGame : Regist
|
|
|
PrepareLab.SetParent(ManaReso.Get("D_PrepareLayout2"));
|
|
|
|
|
|
|
|
|
+ ResetOprerate();
|
|
|
+
|
|
|
+ ManaReso.Get("D_Mask").TweenBacGra();
|
|
|
+
|
|
|
ManaReso.SetActive("D_FlowerBtn1", false);
|
|
|
ManaReso.SetActive("D_FlowerBtn2", false);
|
|
|
ManaReso.SetActive("D_FlowerBtn3", false);
|
|
@@ -1283,8 +1394,6 @@ public class ManaMiniGame : Regist
|
|
|
{
|
|
|
IdleList[i].FlowerIcon.CreateTweenSr(1, 0, 0.25f, true, false, Curve.EaseOutQuad, false, true);
|
|
|
}
|
|
|
-
|
|
|
- ManaReso.Get("D_Mask").TweenBacGra();
|
|
|
}
|
|
|
|
|
|
public static void GameBegin()
|
|
@@ -1359,12 +1468,12 @@ public class ManaMiniGame : Regist
|
|
|
ManaReso.SetActive("D_FlowerBtn5", true);
|
|
|
ManaReso.SetActive("D_FlowerBtn6", true);
|
|
|
|
|
|
- ManaReso.SetSprite("D_FlowerIcon1", FlowerDic[1].FlowerInfo.Icon).Resize(1f, 1f);
|
|
|
- ManaReso.SetSprite("D_FlowerIcon2", FlowerDic[2].FlowerInfo.Icon).Resize(1f, 1f);
|
|
|
- ManaReso.SetSprite("D_FlowerIcon3", FlowerDic[4].FlowerInfo.Icon).Resize(1f, 1f);
|
|
|
- ManaReso.SetSprite("D_FlowerIcon4", FlowerDic[5].FlowerInfo.Icon).Resize(1f, 1f);
|
|
|
- ManaReso.SetSprite("D_FlowerIcon5", FlowerDic[7].FlowerInfo.Icon).Resize(1f, 1f);
|
|
|
- ManaReso.SetSprite("D_FlowerIcon6", FlowerDic[8].FlowerInfo.Icon).Resize(1f, 1f);
|
|
|
+ ManaReso.SetSprite("D_FlowerIcon1", FlowerDic[1].FlowerInfo.Icon).Resize(true, 1f, 1f);
|
|
|
+ ManaReso.SetSprite("D_FlowerIcon2", FlowerDic[2].FlowerInfo.Icon).Resize(true, 1f, 1f);
|
|
|
+ ManaReso.SetSprite("D_FlowerIcon3", FlowerDic[4].FlowerInfo.Icon).Resize(true, 1f, 1f);
|
|
|
+ ManaReso.SetSprite("D_FlowerIcon4", FlowerDic[5].FlowerInfo.Icon).Resize(true, 1f, 1f);
|
|
|
+ ManaReso.SetSprite("D_FlowerIcon5", FlowerDic[7].FlowerInfo.Icon).Resize(true, 1f, 1f);
|
|
|
+ ManaReso.SetSprite("D_FlowerIcon6", FlowerDic[8].FlowerInfo.Icon).Resize(true, 1f, 1f);
|
|
|
}
|
|
|
|
|
|
PrepareLab.StreamForScale();
|
|
@@ -1401,11 +1510,51 @@ public class ManaMiniGame : Regist
|
|
|
|
|
|
i--;
|
|
|
}
|
|
|
+
|
|
|
+ ResetOprerate();
|
|
|
}
|
|
|
|
|
|
public static void RoundBegin()
|
|
|
{
|
|
|
ManaReso.Get("D_Mask").TweenBacGra();
|
|
|
+
|
|
|
+ if (ManaTutorial.TutorialB)
|
|
|
+ {
|
|
|
+ ManaTutorial.EnterB1();
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ public static int IndexMap(int slotIndex)
|
|
|
+ {
|
|
|
+ if (slotIndex == 1)
|
|
|
+ {
|
|
|
+ return 1;
|
|
|
+ }
|
|
|
+ else if (slotIndex == 2)
|
|
|
+ {
|
|
|
+ return 2;
|
|
|
+ }
|
|
|
+ else if (slotIndex == 4)
|
|
|
+ {
|
|
|
+ return 3;
|
|
|
+ }
|
|
|
+ else if (slotIndex == 5)
|
|
|
+ {
|
|
|
+ return 4;
|
|
|
+ }
|
|
|
+ else if (slotIndex == 7)
|
|
|
+ {
|
|
|
+ return 5;
|
|
|
+ }
|
|
|
+ else if (slotIndex == 8)
|
|
|
+ {
|
|
|
+ return 6;
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ throw new Exception();
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
|