public void mapScoreUIswitch() { if (GameControl_map.GetScore() >= GameControl_map.thresh) { winUI.SetActive(true); } else if (Experiment1.round_count == GameControl_map.maxRounds - 1) { winUI.SetActive(true); } else { Experiment1.round_count++; print("Round: " + Experiment1.round_count); loseUI.SetActive(true); } }
// Use this for initialization void Start() { score2print = GameControl_map.GetScore(); txt = gameObject.GetComponent <Text>(); txt.text = "Score : " + score2print.ToString("F0") + " correct"; }