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>(); }
private void Awake() { obstacleControl = GetComponent<ObstacleQueueControl>(); scoreControl = GetComponent<ScoreControl>(); timeControl = GetComponent<TimeControl>(); flowControl = GetComponent<FlowControl>(); deerLeft = GameObject.Find("DeerLeft"); deerRight = GameObject.Find("DeerRight"); }