14 lines
281 B
C#
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);
|
|
}
|
|
}
|