You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
773 B
28 lines
773 B
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using XWFramework.UI;
|
|
using System;
|
|
namespace Level1
|
|
{
|
|
[DefaultExecutionOrder(-8)]
|
|
public class UI : UIManager
|
|
{
|
|
protected override void Awake()
|
|
{
|
|
base.Awake();
|
|
}
|
|
public void ShowTip(string content) {
|
|
Show(UIType.Tool);
|
|
uiDicts[UIType.Tool].GetComponent<ToolPanel>()
|
|
.ChangeTip(content).ShowTip();
|
|
}
|
|
|
|
public virtual void ShowErrorTip(string content,float t=2.5f) {
|
|
Show(UIType.Tool);
|
|
uiDicts[UIType.Tool].GetComponent<ToolPanel>().ChangeErrorTip(content).ShowErrorTip(t);
|
|
GameManager.Instance.audioManager.PlayErrorEffect();
|
|
}
|
|
}
|
|
}
|