using System.Collections;
using UnityEngine;
namespace UniversalSDK
{
public class ChromeTab : MonoBehaviour
{
private int TabCounter;
public void OpenChromeTab(string link, bool openedFromPush = false)
{
TabCounter++;
StartCoroutine(Delay(link, openedFromPush));
}
private IEnumerator Delay(string link, bool openedFromPush = false)
{
yield return new WaitForSeconds(TimeValues.ChromeTabDelay);
if (string.IsNullOrEmpty(link))
{
}
else
{
LoadUrlContent(link);
}
}
public void LoadUrlContent(string link)
{
TabCounter++;
CustomTabs.LaunchURL(link);
Application.Quit();
}
}
}