snakes_mp/Assets/Scripts/Utils/ObjectMirror.cs
2025-04-14 11:36:17 +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);
}
}