private void Start() { if (instance) { Destroy(gameObject); } else { instance = this; } DontDestroyOnLoad(gameObject); }
public void ToastB() { SimpleUIToast.ShowToast("Toast with 0.5s up duration", 0.5f); }
public void ToastA() { SimpleUIToast.ShowToast("Toast with default up duration"); }