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