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