|
@@ -98,7 +98,7 @@ public class Award
|
|
|
#region Diamond
|
|
|
|
|
|
float diamondRate = (float)Auxiliary.FmlParse(DiamondFml, "l", Mathf.Clamp(ManaCenter.Level, 1, 1000).ToString());
|
|
|
-
|
|
|
+
|
|
|
if (Random.Range(0, 1f) <= diamondRate)
|
|
|
{
|
|
|
DiamondFlag = true;
|
|
@@ -198,16 +198,7 @@ public class Award
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
- ManaReso.Get("Da_Info").TweenForCG();
|
|
|
-
|
|
|
- //Auxiliary.Instance.DelayCall
|
|
|
- // (
|
|
|
- // () =>
|
|
|
- // {
|
|
|
- // Debug.LogError("");
|
|
|
- // },
|
|
|
- // 1
|
|
|
- // );
|
|
|
+ ManaReso.SetActive("Da_Info", true);
|
|
|
|
|
|
Auxiliary.Instance.DelayCall
|
|
|
(
|
|
@@ -231,6 +222,8 @@ public class Award
|
|
|
|
|
|
#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");
|
|
@@ -918,7 +911,7 @@ public class ManaMiniGame : Regist
|
|
|
|
|
|
Flower flower = FlowerDic[index];
|
|
|
|
|
|
- ManaReso.GetHudText("+45", Color.white, 90, flower.ChildDic["ScorePosTra"], ManaReso.Get("D_MiniGame"), true);
|
|
|
+ ManaReso.GetHudText("+45", Color.white, 90, flower.ChildDic["ScorePosTra"], ManaReso.Get("D_HudParent"), true);
|
|
|
|
|
|
Score += 45;
|
|
|
|
|
@@ -1086,28 +1079,29 @@ public class ManaMiniGame : Regist
|
|
|
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;
|
|
|
- }
|
|
|
+ GameA = true;
|
|
|
+ //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()
|