Example #1
0
    private void Start()
    {
        if (instance)
        {
            Destroy(gameObject);
        }
        else
        {
            instance = this;
        }

        DontDestroyOnLoad(gameObject);
    }
Example #2
0
 public void ToastB()
 {
     SimpleUIToast.ShowToast("Toast with 0.5s up duration", 0.5f);
 }
Example #3
0
 public void ToastA()
 {
     SimpleUIToast.ShowToast("Toast with default up duration");
 }