48 lines
929 B
C#
48 lines
929 B
C#
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
using System.Collections;
|
|
using GCGame;
|
|
|
|
public class LevelUpController : UIControllerBase<LevelUpController> {
|
|
|
|
public Text LabelTips;
|
|
|
|
|
|
void Awake()
|
|
{
|
|
SetInstance(this);
|
|
}
|
|
// Use this for initialization
|
|
void Start ()
|
|
{
|
|
Invoke("OnTweenFinish", 1);
|
|
}
|
|
|
|
public static void ShowTipByID(int dicID)
|
|
{
|
|
//UIManager.ShowUI(UIInfo.LevelupTip, LevelUpController.OnShowTip, dicID);
|
|
|
|
}
|
|
|
|
static void OnShowTip(bool bSuccess, object dicID)
|
|
{
|
|
LevelUpController.Instance().SetLabelTextByID((int)dicID);
|
|
}
|
|
public void SetLabelText(string text)
|
|
{
|
|
LabelTips.text = text;
|
|
|
|
}
|
|
|
|
public void SetLabelTextByID(int dicID)
|
|
{
|
|
LabelTips.text = Utils.GetDicByID(dicID);
|
|
|
|
}
|
|
|
|
public void OnTweenFinish()
|
|
{
|
|
//UIManager.CloseUI(UIInfo.LevelupTip);
|
|
}
|
|
}
|