chip-gameV3/Assets/Scripts/ScreenTester.cs
2026-07-14 11:14:13 +03:00

15 lines
320 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ScreenTester : MonoBehaviour
{
[SerializeField] float timeToDisable = 4;
private void OnEnable()
{
Invoke("disable", timeToDisable);
}
public void disable() => gameObject.SetActive(false);
}