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().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() { } }