Files
Nathaniel Cosford 062dfab2cd Patched
2025-05-30 01:04:40 +09:30

20 lines
365 B
C#

using UnityEngine;
public class FPSDemoReactivator : MonoBehaviour
{
public float StartDelay = 0;
public float TimeDelayToReactivate = 3;
void Start()
{
InvokeRepeating("Reactivate", StartDelay, TimeDelayToReactivate);
}
void Reactivate()
{
gameObject.SetActive(false);
gameObject.SetActive(true);
}
}