|
@@ -68,6 +68,7 @@ namespace GFGGame
|
|
|
|
|
|
public void OnShown()
|
|
public void OnShown()
|
|
{
|
|
{
|
|
|
|
+ UpdateCurrency();
|
|
UpdateNumeric();
|
|
UpdateNumeric();
|
|
UpdateCJExchange();
|
|
UpdateCJExchange();
|
|
UpdateCJ(LuckyBoxDataManager.Instance.currentBoxId);
|
|
UpdateCJ(LuckyBoxDataManager.Instance.currentBoxId);
|
|
@@ -89,14 +90,20 @@ namespace GFGGame
|
|
{
|
|
{
|
|
UpdateCJExchange();
|
|
UpdateCJExchange();
|
|
UpdateCJ(LuckyBoxDataManager.Instance.currentBoxId);
|
|
UpdateCJ(LuckyBoxDataManager.Instance.currentBoxId);
|
|
|
|
+ UpdateCurrency();
|
|
|
|
+ }
|
|
|
|
+ private void UpdateCurrency()
|
|
|
|
+ {
|
|
|
|
+ _valueBar.m_btnGold.text = "" + RoleDataManager.gold;
|
|
|
|
+ _valueBar.m_btnDiamondPurple.text = "" + RoleDataManager.diaP;
|
|
|
|
+ _valueBar.m_btnDiamondRed.text = "" + RoleDataManager.diaR;
|
|
}
|
|
}
|
|
-
|
|
|
|
private void UpdateNumeric()
|
|
private void UpdateNumeric()
|
|
{
|
|
{
|
|
- _valueBar.m_btnGold.text = "" + RoleDataManager.gold; //GameGlobal.myNumericComponent.GetAsInt(NumericType.Gold);
|
|
|
|
|
|
+ // _valueBar.m_btnGold.text = "" + RoleDataManager.gold; //GameGlobal.myNumericComponent.GetAsInt(NumericType.Gold);
|
|
_valueBar.m_btnPower.text = string.Format("{0}/{1}", RoleDataManager.power, GameGlobal.myNumericComponent.GetAsInt(NumericType.PowerLimit));
|
|
_valueBar.m_btnPower.text = string.Format("{0}/{1}", RoleDataManager.power, GameGlobal.myNumericComponent.GetAsInt(NumericType.PowerLimit));
|
|
- _valueBar.m_btnDiamondPurple.text = "" + RoleDataManager.diaP;// GameGlobal.myNumericComponent.GetAsInt(NumericType.DiamondP);
|
|
|
|
- _valueBar.m_btnDiamondRed.text = "" + RoleDataManager.diaR;// GameGlobal.myNumericComponent.GetAsInt(NumericType.DiamondR);
|
|
|
|
|
|
+ // _valueBar.m_btnDiamondPurple.text = "" + RoleDataManager.diaP;// GameGlobal.myNumericComponent.GetAsInt(NumericType.DiamondP);
|
|
|
|
+ // _valueBar.m_btnDiamondRed.text = "" + RoleDataManager.diaR;// GameGlobal.myNumericComponent.GetAsInt(NumericType.DiamondR);
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|