mirror of
https://projects.caleb-brown.dev/UDRI-XRT/UDRIGEEKCup2024.git
synced 2025-01-21 22:58:50 -05:00
30 lines
638 B
C#
30 lines
638 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
namespace MAVRIC.GEEKCup
|
|
{
|
|
public class IcallYouSukahchu : MonoBehaviour
|
|
{
|
|
[SerializeField]
|
|
private float delay = 1f;
|
|
|
|
[SerializeField] private GameObject target;
|
|
|
|
// Start is called before the first frame update
|
|
void Start()
|
|
{
|
|
StartCoroutine(Appear());
|
|
}
|
|
|
|
private IEnumerator Appear()
|
|
{
|
|
while (true)
|
|
{
|
|
yield return new WaitForSeconds(delay);
|
|
target.SetActive(!target.activeSelf);
|
|
}
|
|
}
|
|
}
|
|
}
|