修改高亮获取逻辑
This commit is contained in:
parent
6938565038
commit
3190e71b7d
|
@ -23,6 +23,10 @@ public class LiveSceneManager : SingletonMono<LiveSceneManager>
|
|||
currentTool.transform.parent = Camera.main.transform;
|
||||
currentTool.transform.localPosition = spawnToolPos.localPosition;
|
||||
currentTool.transform.localEulerAngles = spawnToolPos.localEulerAngles;
|
||||
if (currentTool.GetComponent<Tool_Base>())
|
||||
currentTool.GetComponent<Tool_Base>().SetHeadPosAndEulerang(currentTool.transform.localPosition, currentTool.transform.localEulerAngles);
|
||||
if (currentTool.GetComponent<Device_Base>())
|
||||
currentTool.GetComponent<Device_Base>().SetHeadPosAndEulerang(currentTool.transform.localPosition, currentTool.transform.localEulerAngles);
|
||||
tMDTips.gameObject.SetActive(true);
|
||||
if (currentTool.name.Equals("¹¤×÷Ö¤"))
|
||||
{
|
||||
|
|
|
@ -28,9 +28,10 @@ public abstract class BaseToolOrDevice : MonoBehaviour
|
|||
public HighlightEffect _highlight;
|
||||
private void Awake()
|
||||
{
|
||||
_highlight = GetComponent<HighlightEffect>();
|
||||
GameManager.EventMgr.AddEventListener<string>(Enum_EventType.SwitchSubProcessStepTriggerID, SwitchSubProcessStepTriggerID);
|
||||
}
|
||||
|
||||
|
||||
private void SwitchSubProcessStepTriggerID(string arg0)
|
||||
{
|
||||
if (itemInfo.toolName == arg0)
|
||||
|
@ -45,7 +46,7 @@ public abstract class BaseToolOrDevice : MonoBehaviour
|
|||
|
||||
public void GetInfo()
|
||||
{
|
||||
_highlight = GetComponent<HighlightEffect>();
|
||||
//_highlight = GetComponent<HighlightEffect>();
|
||||
D_ToolAndMaterialData dTMD = GameManager.ToolAndmaterialMgr.GetToolOrMaterialOrDeviceInfoByObjName(gameObject.name);
|
||||
if (dTMD != null)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue