|
@@ -31,12 +31,12 @@ public class ManaUI : MonoBehaviour
|
|
|
|
|
|
ManaReso.AddButtonEvent
|
|
|
(
|
|
|
- "A_Confirm",
|
|
|
+ "Ba_Confirm",
|
|
|
() =>
|
|
|
{
|
|
|
- ManaReso.Get("B_SignIn").TweenForCG();
|
|
|
+ ManaReso.Get("Bb_SignIn").TweenForCG();
|
|
|
|
|
|
- ManaReso.SetActive("A_Notice", false);
|
|
|
+ ManaReso.SetActive("Ba_Notice", false);
|
|
|
}
|
|
|
);
|
|
|
|
|
@@ -46,16 +46,16 @@ public class ManaUI : MonoBehaviour
|
|
|
|
|
|
#region B
|
|
|
|
|
|
- #region B_Get
|
|
|
+ #region Bb_Get
|
|
|
|
|
|
ManaReso.AddButtonEvent
|
|
|
(
|
|
|
- "B_Get",
|
|
|
+ "Bb_Get",
|
|
|
() =>
|
|
|
{
|
|
|
- ManaReso.SetActive("B_Get", false);
|
|
|
- ManaReso.SetActive("B_Info", true);
|
|
|
- ManaReso.SetActive("B_Confirm", true);
|
|
|
+ ManaReso.SetActive("Bb_Get", false);
|
|
|
+ ManaReso.SetActive("Bb_Info", true);
|
|
|
+ ManaReso.SetActive("Bb_Confirm", true);
|
|
|
|
|
|
SeleDateItem.GetChild(1).SetActive(true);
|
|
|
ManaData.Coin += 1500;
|
|
@@ -78,7 +78,7 @@ public class ManaUI : MonoBehaviour
|
|
|
ManaData.Main--;
|
|
|
};
|
|
|
|
|
|
- Transform tra = ManaReso.Get("B_Grid");
|
|
|
+ Transform tra = ManaReso.Get("Bb_Grid");
|
|
|
|
|
|
SeleDateItem = ManaReso.Get("DateItem", Folder.PrefabUI, false, tra, false);
|
|
|
ManaReso.Get("DateItem", Folder.PrefabUI, false, tra, false);
|
|
@@ -90,11 +90,22 @@ public class ManaUI : MonoBehaviour
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
+ #region Bb_SignIn
|
|
|
+
|
|
|
+ tween = ManaReso.Get("Bb_SignIn").CreateTweenCG(0f, 1f, 0.5f, false, true, Curve.EaseOutQuad);
|
|
|
+
|
|
|
+ tween.OnBackwardStart += () =>
|
|
|
+ {
|
|
|
+ ManaData.Main--;
|
|
|
+ };
|
|
|
+
|
|
|
+ #endregion
|
|
|
+
|
|
|
#region B_Confirm
|
|
|
|
|
|
ManaReso.AddButtonEvent
|
|
|
(
|
|
|
- "B_Confirm",
|
|
|
+ "Bb_Confirm",
|
|
|
() =>
|
|
|
{
|
|
|
ManaReso.Get("B_SignIn").TweenBacCG();
|
|
@@ -125,7 +136,7 @@ public class ManaUI : MonoBehaviour
|
|
|
|
|
|
#region C_Main
|
|
|
|
|
|
- ManaReso.Get("C_Main").CreateTweenCG(0, 1, 0.25f, false, true, Curve.EaseOutQuad);
|
|
|
+ ManaReso.Get("C_Main").CreateTweenCG(0, 1, 0.25f, false, true, Curve.EaseOutQuad);
|
|
|
|
|
|
#endregion
|
|
|
|
|
@@ -339,9 +350,13 @@ public class ManaUI : MonoBehaviour
|
|
|
{
|
|
|
tra = ManaReso.Get("F_Elf");
|
|
|
|
|
|
- tra.SetAsLastSibling();
|
|
|
tra.GetComponent<Button>().interactable = false;
|
|
|
|
|
|
+ ManaReso.Get("F_Elf").SetAsLastSibling();
|
|
|
+ ManaReso.Get("F_Store").SetSiblingIndex(0);
|
|
|
+ ManaReso.Get("F_Magic").SetSiblingIndex(1);
|
|
|
+ ManaReso.Get("F_Garden").SetSiblingIndex(2);
|
|
|
+
|
|
|
ManaReso.Get<Button>("F_Store").interactable = true;
|
|
|
ManaReso.Get<Button>("F_Magic").interactable = true;
|
|
|
ManaReso.Get<Button>("F_Garden").interactable = true;
|
|
@@ -362,9 +377,13 @@ public class ManaUI : MonoBehaviour
|
|
|
{
|
|
|
tra = ManaReso.Get("F_Store");
|
|
|
|
|
|
- tra.SetAsLastSibling();
|
|
|
tra.GetComponent<Button>().interactable = false;
|
|
|
|
|
|
+ ManaReso.Get("F_Elf").SetSiblingIndex(1);
|
|
|
+ ManaReso.Get("F_Store").SetAsLastSibling();
|
|
|
+ ManaReso.Get("F_Magic").SetSiblingIndex(0);
|
|
|
+ ManaReso.Get("F_Garden").SetSiblingIndex(2);
|
|
|
+
|
|
|
ManaReso.Get<Button>("F_Elf").interactable = true;
|
|
|
ManaReso.Get<Button>("F_Magic").interactable = true;
|
|
|
ManaReso.Get<Button>("F_Garden").interactable = true;
|
|
@@ -385,9 +404,13 @@ public class ManaUI : MonoBehaviour
|
|
|
{
|
|
|
tra = ManaReso.Get("F_Magic");
|
|
|
|
|
|
- tra.SetAsLastSibling();
|
|
|
tra.GetComponent<Button>().interactable = false;
|
|
|
|
|
|
+ ManaReso.Get("F_Elf").SetSiblingIndex(1);
|
|
|
+ ManaReso.Get("F_Store").SetSiblingIndex(0);
|
|
|
+ ManaReso.Get("F_Magic").SetAsLastSibling();
|
|
|
+ ManaReso.Get("F_Garden").SetSiblingIndex(2);
|
|
|
+
|
|
|
ManaReso.Get<Button>("F_Elf").interactable = true;
|
|
|
ManaReso.Get<Button>("F_Store").interactable = true;
|
|
|
ManaReso.Get<Button>("F_Garden").interactable = true;
|
|
@@ -408,9 +431,13 @@ public class ManaUI : MonoBehaviour
|
|
|
{
|
|
|
tra = ManaReso.Get("F_Garden");
|
|
|
|
|
|
- tra.SetAsLastSibling();
|
|
|
tra.GetComponent<Button>().interactable = false;
|
|
|
|
|
|
+ ManaReso.Get("F_Elf").SetSiblingIndex(2);
|
|
|
+ ManaReso.Get("F_Store").SetSiblingIndex(0);
|
|
|
+ ManaReso.Get("F_Magic").SetSiblingIndex(1);
|
|
|
+ ManaReso.Get("F_Garden").SetAsLastSibling();
|
|
|
+
|
|
|
ManaReso.Get<Button>("F_Elf").interactable = true;
|
|
|
ManaReso.Get<Button>("F_Store").interactable = true;
|
|
|
ManaReso.Get<Button>("F_Magic").interactable = true;
|
|
@@ -457,7 +484,8 @@ public class ManaUI : MonoBehaviour
|
|
|
|
|
|
tween.OnForwardStart += () =>
|
|
|
{
|
|
|
- ManaData.Main++;
|
|
|
+ ManaData.Main += 2;
|
|
|
+ ManaReso.Get("C_Main").TweenBacCG();
|
|
|
};
|
|
|
|
|
|
tween.OnBackwardStart += () =>
|
|
@@ -584,9 +612,15 @@ public class ManaUI : MonoBehaviour
|
|
|
|
|
|
tween.OnForwardStart += () =>
|
|
|
{
|
|
|
- ManaData.Main++;
|
|
|
-
|
|
|
- ManaReso.Get("C_Main").TweenBacCG();
|
|
|
+ if (ManaData.Main == -1)
|
|
|
+ {
|
|
|
+ ManaData.Main += 2;
|
|
|
+ ManaReso.Get("C_Main").TweenBacCG();
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ ManaData.Main++;
|
|
|
+ }
|
|
|
|
|
|
if (ManaGarden.MyFlowerSpec == 0)
|
|
|
{
|
|
@@ -599,13 +633,13 @@ public class ManaUI : MonoBehaviour
|
|
|
ManaData.Main--;
|
|
|
};
|
|
|
|
|
|
- #endregion
|
|
|
+ #endregion
|
|
|
|
|
|
- #endregion
|
|
|
+ #endregion
|
|
|
|
|
|
- #region H
|
|
|
+ #region H
|
|
|
|
|
|
- #region H_Prev
|
|
|
+ #region H_Prev
|
|
|
|
|
|
ManaReso.AddButtonEvent
|
|
|
(
|
|
@@ -684,9 +718,15 @@ public class ManaUI : MonoBehaviour
|
|
|
|
|
|
tween.OnForwardStart += () =>
|
|
|
{
|
|
|
- ManaData.Main++;
|
|
|
-
|
|
|
- ManaReso.Get("C_Main").TweenBacCG();
|
|
|
+ if (ManaData.Main == -1)
|
|
|
+ {
|
|
|
+ ManaData.Main += 2;
|
|
|
+ ManaReso.Get("C_Main").TweenBacCG();
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ ManaData.Main++;
|
|
|
+ }
|
|
|
};
|
|
|
|
|
|
tween.OnBackwardStart += () =>
|