- Home /
unity 5.3 InvalidOperationException
hi, since i've upgraded to unity 5.3 i get this error: InvalidOperationException: Operation is not valid due to the current state of the object System.Collections.Generic.Stack`1[System.Boolean].Pop ()
in this case i was trying to attach the text in the hierarchy so that it could be displayed during the game. i don't know if it's relevant, anyway here's the script:
public static int coins;
public Text coinsText;
void Update () {
Move();
Rotate ();
Shoot ();
UpdateText();
}
void UpdateText() {
coinsText.text = "Coins: " + coins.ToString();
}
the scirpt is attached to the player, which is a prefab. can you help me solve this? thank you in advance:)
Your answer

Follow this Question
Related Questions
Cannot Import TextMeshPro Essentials 0 Answers
InputField add text 'StackOverflowException' error 1 Answer
Hierarchy not showing anything, getting KeyNotFoundException 1 Answer
Multiplayer Custom Object Spawning (ClientScene.RegisterSpawnHandler) Out Of Sync Error 1 Answer
The variable m_Font of 'GUISkin' doesn't exist anymore 1 Answer