// Use this for initialization void Start() { // set initial states manager = GameObject.Find("GameManager").GetComponent<GameManagerInit>(); wheel = manager.Wheel; currentLane = Location.lane.middle; // Set initial lane SetRandomLane(); }
// Use this for initialization void Start() { // set initial states manager = GameObject.Find("GameManager").GetComponent <GameManagerInit>(); wheel = manager.Wheel; currentLane = Location.lane.middle; // Set initial lane SetRandomLane(); }
// Use this for initialization void Start() { manager = GetComponent <GameManagerInit>(); childhoodBar = GameObject.FindGameObjectWithTag("ChildhoodBar"); BarWidth = 1.0f; growingTextTimer = growingTextDuration + 1; // SCORE // acquire score object if (GameObject.FindObjectOfType <Score>() != null) { score = GameObject.FindObjectOfType <Score>(); } }
// Use this for initialization void Start() { manager = GetComponent<GameManagerInit> (); roller = manager.Wheel; generator = GetComponent<ObstacleGenerator> (); }
// Use this for initialization void Start() { manager = GetComponent<GameManagerInit>(); childhoodBar = GameObject.FindGameObjectWithTag("ChildhoodBar"); BarWidth = 1.0f; growingTextTimer = growingTextDuration + 1; // SCORE // acquire score object if (GameObject.FindObjectOfType<Score>() != null) { score = GameObject.FindObjectOfType<Score>(); } }
// Use this for initialization void Start() { manager = GetComponent <GameManagerInit> (); roller = manager.Wheel; generator = GetComponent <ObstacleGenerator> (); }