15 lines
292 B
C#
15 lines
292 B
C#
|
using UnityEngine;
|
||
|
|
||
|
public class LogoScript : MonoBehaviour {
|
||
|
|
||
|
public GameObject targetGameObject;
|
||
|
|
||
|
void Start() {
|
||
|
InvokeRepeating(nameof(CheckActiveState), 0.25f, 0.25f);
|
||
|
}
|
||
|
|
||
|
void CheckActiveState() {
|
||
|
gameObject.SetActive(targetGameObject.activeSelf);
|
||
|
}
|
||
|
}
|