Beispiel #1
0
    // Use this for initialization
    void Start()
    {
        GameObject scor = GameObject.FindGameObjectWithTag("scorSingle");

        timer = scor.GetComponent <TimerSingle>();
        RandomPos();
    }
Beispiel #2
0
 void Start()
 {
     Chronometer.SetActive(false);
        timer = gameObject.AddComponent<TimerSingle>();
     chronoText = Chronometer.GetComponent<Text>();
     timeToComplete = LevelManager.Instance.timeLimit;
 }
Beispiel #3
0
 // Use this for initialization
 void Start()
 {
     GameObject scor = GameObject.FindGameObjectWithTag("scorSingle");
     timer = scor.GetComponent<TimerSingle>();
     RandomPos();
 }
Beispiel #4
0
 void OnEnable()
 {
     timer = GetComponent<TimerSingle>();
 }
Beispiel #5
0
 public void AddTimer()
 {
     timer = gameObject.AddComponent<TimerSingle>();
 }