origin_10006_YanCheng_Metro.../Assets/Scripts/ComputerController.cs

35 lines
950 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ComputerController : PermanentTriggerBase
{
protected override void OnStart()
{
base.OnStart();
}
protected override void OnMEnter()
{
base.OnMEnter();
if (GameManager.RunModelMgr.ModeType != E_ModeType.Study)
{
_highlight.SetHighlighted(true);
}
}
protected override void OnMExit()
{
if (GameManager.RunModelMgr.ModeType != E_ModeType.Study)
_highlight.SetHighlighted(false);
base.OnMExit();
}
protected override void OnMDown()
{
_highlight.SetHighlighted(false);
GameManager.UIMgr.ShowPanel<UI_ComputerSystemHomePagePanel>(E_UI_Layer.Mid, (panel) =>
{
//panel.Init(triggerName, "我是xxx供电所人员到xxx地方开展直接接入式电能计量装置装拆及验收标准化作业。", PlayerTalk, 0);
});
}
}