using System.Collections; using System.Collections.Generic; using UnityEngine; /// /// 工具材料基类 /// public class Tool_Base : PermanentTriggerBase { /// /// 工具类型 /// public ToolType toolType; protected override void OnMEnter() { if (GameManager.RunModelMgr == null && GameManager.RunModelMgr.SceneType == E_SceneType.Site) { base.OnMEnter(); Debug.Log(gameObject.name); _highlight.highlighted = true; } } protected override void OnMExit() { if (GameManager.RunModelMgr == null && GameManager.RunModelMgr.SceneType == E_SceneType.Site) { base.OnMExit(); _highlight.highlighted = false; } } }