Exemple #1
0
 private void Awake()
 {
     Panel_Tips.Instance = this;
     EventDelegate.Set(this.btn_tipBar_confirm.onClick, new EventDelegate.Callback(this.OnTipBarConfimBtnClick));
     EventDelegate.Set(this.btn_confirmBar_confirm.onClick, new EventDelegate.Callback(this.OnConfirmBarConfirmClick));
     EventDelegate.Set(this.btn_confirmBar_cancle.onClick, new EventDelegate.Callback(this.OnConfirmBarCancleClick));
 }
Exemple #2
0
    public void ShowTips(TipsType type, params object[] args)
    {
        if (_curTipsWindow == null)
        {
            _curTipsWindow = AddChild <Panel_Tips>(_centerRoot);
        }
        switch (type)
        {
        case TipsType.text:
            _curTipsWindow.ShowTextTips((string)args[0]);
            break;

        default:
            break;
        }
    }