示例#1
0
 private void Awake()
 {
     obstacleQueueControl = GetComponent<ObstacleQueueControl>();
     scoreControl = GetComponent<ScoreControl>();
     timeControl = GetComponent<TimeControl>();
     treeTapControl = GetComponent<TreeTapControl>();
     loseText = GameObject.Find ("LoseText").GetComponent<GUIText>();
     highScore = GameObject.Find ("HighScoreText").GetComponent<GUIText>();
 }
示例#2
0
 private void Awake()
 {
     obstacleControl = GetComponent<ObstacleQueueControl>();
     scoreControl = GetComponent<ScoreControl>();
     timeControl = GetComponent<TimeControl>();
     flowControl = GetComponent<FlowControl>();
     deerLeft = GameObject.Find("DeerLeft");
     deerRight = GameObject.Find("DeerRight");
 }