You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my function "Pause game" I have a call to "Toast.Dismiss();". This raises an error because the object is not initialized yet.
To fix this, just add a call to "prepare" before dismissing.
Error:
NullReferenceException: Object reference not set to an instance of an object
EasyUI.Toast.Toast.Dismiss () (at Assets/MyPackages/Toast UI/Scripts/Toast.cs:113)
GameManagerScript.pauseGame () (at Assets/Scripts/GameManagerScript.cs:126)
GameManagerScript.Update () (at Assets/Scripts/GameManagerScript.cs:95)
The text was updated successfully, but these errors were encountered:
In my function "Pause game" I have a call to "Toast.Dismiss();". This raises an error because the object is not initialized yet.
To fix this, just add a call to "prepare" before dismissing.
Error:
The text was updated successfully, but these errors were encountered: