1
0
mirror of https://projects.caleb-brown.dev/UDRI-XRT/UDRIGEEKCup2024.git synced 2025-01-21 22:58:50 -05:00
UDRIGEEKCup2024/Assets/IcallYouSukahchu.cs
2024-04-25 12:37:57 -04:00

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);
}
}
}
}