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

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