40 lines
955 B
C#
40 lines
955 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
/// <summary>
|
|
/// ¹¤¾ß²ÄÁÏ»ùÀà
|
|
/// </summary>
|
|
public class Tool_Base : PermanentTriggerBase
|
|
{
|
|
/// <summary>
|
|
/// ¹¤¾ßÀàÐÍ
|
|
/// </summary>
|
|
public ToolType toolType;
|
|
|
|
protected override void OnStart()
|
|
{
|
|
if (GameManager.RunModelMgr == null && GameManager.RunModelMgr.SceneType == E_SceneType.Site)
|
|
{
|
|
base.OnStart();
|
|
}
|
|
}
|
|
protected override void OnMEnter()
|
|
{
|
|
if (GameManager.RunModelMgr == null && GameManager.RunModelMgr.SceneType == E_SceneType.Site)
|
|
{
|
|
base.OnMEnter();
|
|
_highlight.SetHighlighted(true);
|
|
|
|
}
|
|
}
|
|
protected override void OnMExit()
|
|
{
|
|
if (GameManager.RunModelMgr == null && GameManager.RunModelMgr.SceneType == E_SceneType.Site)
|
|
{
|
|
base.OnMExit();
|
|
_highlight.SetHighlighted(false);
|
|
}
|
|
}
|
|
}
|