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)
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: