FlappyBirdMP/Assets/Scripts/Utils/ObjectMirror.cs
2025-07-05 00:53:04 +05:30

14 lines
281 B
C#

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);
}
}