using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class LoginUPError : MonoBehaviour
{
    public float times;
    private void OnEnable()
    {
        times = 0;
    }

    private void Update()
    {
        times += Time.deltaTime;
        if (times >= 3)
        {
            times = 0;
            gameObject.SetActive(false);
        }
    }

    private IEnumerator CloseShwo()
    {
        yield return new WaitForSeconds(3f);
        gameObject.SetActive(false);

    }
}