1118OPSSNew/Assets/Zion/Scripts//设备/GroundWire.cs

39 lines
901 B
C#

using DG.Tweening;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class GroundWire : PermanentTriggerBase
{
public GameObject circleLeft;
public GameObject circleRight;
protected override void OnMDown()
{
base.OnMDown();
if (circleRight.activeInHierarchy && !circleLeft.activeInHierarchy)
{
circleLeft.SetActive(true);
circleRight.GetComponent<LineRenderer>().SetPosition(1, circleLeft.transform.position);
DestroyImmediate(LiveSceneManager.Instance.currentTool);
LiveSceneManager.Instance.currentTool = null;
}
StepManager.Instance.FinishStep(triggerName);
}
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
}
}