Example #1
0
    public void ShowRobUI()
    {
        m_bRobTipOpened = true;

        float leftRate  = 1.0f - (float)(m_buildData.RTData.robRate / 100);
        int   leftCoin  = (int)(m_buildData.config.GetCoin * leftRate);
        int   leftStone = (int)(m_buildData.config.GetStone * leftRate);

        RobUI.OpenUI(Core.Data.stringManager.getString(5215), (int)m_buildData.config.GetCoin, leftCoin, (int)m_buildData.config.GetStone, leftStone);
    }
Example #2
0
 void OnBtnCancel()
 {
     _instance = null;
     Destroy(this.gameObject);
 }
Example #3
0
 void Awake()
 {
     _instance = this;
 }