// Start is called before the first frame update void Start() { //Load all files into scrolling view TeamValues.ResetAllValues(); GameValues.ResetAllValues(); Time.timeScale = 1; Populate(); }
private void GameWon() { if (TeamValues.blueWon) { //Set text to blue won txtWinner.text = "Blue Team Won!"; } else if (TeamValues.redWon) { //Set text to red won txtWinner.text = "Red Team Won!"; } else if (TeamValues.greyWon) { txtWinner.text = "Red Team Won!"; } TeamValues.ResetAllValues(); GameValues.ResetAllValues(); wn.gameObject.SetActive(true); Time.timeScale = 0; }