public void ShowPopup(string text, float time)
    {
        UIPopup popupText = Instantiate(popupPrefab, transform.position, Quaternion.Euler(Vector2.zero), gridTransform).GetComponent <UIPopup>();

        popupText.transform.localEulerAngles = Vector3.zero;

        popupText.SetText(text);

        openTimes.Add(Time.realtimeSinceStartup + time);
        openTimes[openTimes.Count - 1] += popupText.PlayShowAnimation();

        if (hideCoroutine == null)
        {
            hideCoroutine = StartCoroutine(HideCoroutine());
        }
    }