示例#1
0
        void OnAddVigourBtnClick(object obj)
        {
            if (BuyVigourMessagePanel == null)
            {
                BuyVigourMessagePanel = CreatObjectToNGUI.InstantiateObj(BuyVigourMessagePrefab, transform).GetComponent <VigourMessagePanel>();
            }
            string ShowStr = string.Format(LanguageTextManager.GetString("IDS_H1_158"), 40);

            BuyVigourMessagePanel.Show(string.Format("{0}\n{1}", LanguageTextManager.GetString("IDS_H1_166"), ShowStr));
        }
示例#2
0
    public void ShowAddVigour()
    {
        if (null == BuyVigourMessagePrefab)
        {
            return;
        }

        if (BuyVigourMessagePanel == null)
        {
            BuyVigourMessagePanel = UI.CreatObjectToNGUI.InstantiateObj(BuyVigourMessagePrefab, UICamera.transform.Find("Anchor")).GetComponent <UI.VigourMessagePanel>();
        }
        string ShowStr = string.Format(LanguageTextManager.GetString("IDS_H1_158"), CommonDefineManager.Instance.CommonDefine.EnergyAdd);

        BuyVigourMessagePanel.Show(string.Format("{0}\n{1}", LanguageTextManager.GetString("IDS_H1_166"), ShowStr));
    }