32 lines
1.6 KiB
C#
32 lines
1.6 KiB
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using ZXKFramework;
|
|
public class TipDemoTest : MonoBehaviour
|
|
{
|
|
int index = 0;
|
|
void Update()
|
|
{
|
|
if (Input.GetKeyDown(KeyCode.M))
|
|
{
|
|
Game.Instance.tipManager.Show(new TipData() { tipType = TipTypeEnum.TipUP, tip = "这是一个勇者的故事" });
|
|
Game.Instance.tipManager.Show(new TipData() { tipType = TipTypeEnum.TipDown, tip = "很久之前,村庄出现了一条恶龙,夺走的了公主", isShowBg = false });
|
|
Game.Instance.tipManager.Show(new TipData() { tipType = TipTypeEnum.Tip, tip = "身为勇士的你,将如何抉择?" });
|
|
Game.Instance.tipManager.Show(new TipData() { tipType = TipTypeEnum.TipOneBtn, tip = "游戏开始", btn1Event = () => Game.Instance.tipManager.Show(new TipData() { tipType = TipTypeEnum.TipLit, tip = "666" }) });
|
|
Game.Instance.tipManager.Show(new TipData()
|
|
{
|
|
tipType = TipTypeEnum.TipTwoBtn,
|
|
tip = "是否与恶龙战斗,救出公主",
|
|
btn1Event = () => Game.Instance.tipManager.Show(new TipData() { tipType = TipTypeEnum.TipLit, tip = "666" }),
|
|
btn2Event = () => Game.Instance.tipManager.Show(new TipData() { tipType = TipTypeEnum.TipLit, tip = "666" })
|
|
});
|
|
Game.Instance.tipManager.Show(new TipData() { tipType = TipTypeEnum.TipUP, tip = "游戏结束" });
|
|
}
|
|
if (Input.GetKeyDown(KeyCode.N))
|
|
{
|
|
index++;
|
|
Game.Instance.tipManager.Show(new TipData() { tipType = TipTypeEnum.TipLit, tip = index.ToString() });
|
|
}
|
|
}
|
|
}
|