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.

50 lines
1.2 KiB

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using LzFramework.UI;
namespace DisComputer
{
public class IdleView : TTUIPage
{
public IdleView() : base(UIType.Fixed, UIMode.DoNothing, UICollider.None)
{
uiPath = "UIPrefabs/IdleView";
}
public override void Awake(GameObject go)
{
}
public override void Active()
{
this.gameObject.SetActive(true);
string modeName = "";
if(GameConfig.state == GameState.Load)
{
modeName = "组装模式";
}
else
{
modeName = "拆装模式";
}
string tipStr = string.Format("<color=red><size=30>{0}</size></color>\n 鼠标左键点击电脑即可开始课程", modeName);
MessageContainer.SendMessage(tipStr, this, MsgName.TipViewShowOperation, 0.1f);
}
public override void Hide()
{
//MessageContainer.SendMessage("",this,MsgName.TipViewHideOperation);
this.gameObject.SetActive(false);
}
public override void Refresh()
{
}
}
}