// Use this for initialization void Start() { rctBackButton = new Rect(50, 50, 185, 67); rctInstruction = new Rect(Screen.width / 2 - 500, 50, 1000, 100); curinstrIndex = (int)Instructions.WaitU; runStatus = GetRunStatus(); }
// Use this for initialization void Start() { // Initialize roads. roadPrefabArray = Resources.LoadAll <GameObject>(roadPrefabPath); // GUI rctScore = new Rect(50, 50, 150, 40); rctHealthBar = new Rect(Screen.width / 2 - 100, 20, 200, 20); runStatus = GetRunStatus(); }