Skip to content

Instantly share code, notes, and snippets.

@WakkyFree
Last active March 14, 2018 15:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save WakkyFree/d7b3a3b291890728c124a2191684fce8 to your computer and use it in GitHub Desktop.
Save WakkyFree/d7b3a3b291890728c124a2191684fce8 to your computer and use it in GitHub Desktop.
Unity script to control texts displayed on the scene
using UnityEngine;
using System.Collections;
public class ControlEndText : MonoBehaviour {
public GameObject EndText;
public GameObject RestartButton;
// Use this for initialization
void Start () {
EndText.SetActive(false);
RestartButton.SetActive(false);
}
// Update is called once per frame
void Update () {
if(CountDownTimer.gameTimerInt == 0) {
EndText.SetActive(true);
RestartButton.SetActive(true);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment