using System.Collections; using System.Collections.Generic; using UnityEngine; public class ObjectMirror : MonoBehaviour { public Transform source; public Transform target; void Update() { target.gameObject.SetActive(source.gameObject.activeSelf); } }