Singularity/Assets/Scripts/LogoScript.cs

15 lines
292 B
C#
Raw Normal View History

2024-05-06 14:45:45 -04:00
using UnityEngine;
public class LogoScript : MonoBehaviour {
public GameObject targetGameObject;
void Start() {
InvokeRepeating(nameof(CheckActiveState), 0.25f, 0.25f);
}
void CheckActiveState() {
gameObject.SetActive(targetGameObject.activeSelf);
}
}