Last active
March 14, 2018 15:31
-
-
Save WakkyFree/d7b3a3b291890728c124a2191684fce8 to your computer and use it in GitHub Desktop.
Unity script to control texts displayed on the scene
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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