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