The score board has a 0 on top of the first number. 100 would be 000 (but with the one behind the first 0) (there is another script for right answers too, having the same problem )
using UnityEngine;
using System.Collections;
public class scorno : MonoBehaviour {
//var outher = Collider
float playerwrong = 0;
void OnTriggerEnter( Collider no){
playerwrong += 1;
}
// Update is called once per frame
void Update ()
{
}
//Method to increase score though other scripts:
//Like collectibles, etc.
public void Increasewrong(int amount)
{
playerwrong += amount;
}
void OnDisable()
{
//Look to store somewhere else. Like a packet to persist with dont destroy on load.
PlayerPrefs.SetInt ("Wrong :(", (int)(playerwrong*100));
}
void OnGUI()
{
GUI.Label (new Rect (10, -5, 100, 30), "WRONG :(" + (int)(playerwrong * 100));
}
}
`