// Use this for initialization void Start() { _beatMachine = FindObjectOfType <BeatMachine> (); _image = Building.GetComponent <Image> (); _image.color = new Color(1, 1, 1, 0.5f); UpdateBuildingSprite(); }
void Start() { _beatMachine = FindObjectOfType <BeatMachine> (); _image = GetComponent <Image> (); _rectTransform = GetComponent <RectTransform> (); _originalWidth = _rectTransform.rect.width; _beatWidth = _originalWidth / _beatMachine.beatsToShow; Update(); }
// Use this for initialization void Awake() { beatMachine = GameObject.Find("Rhythm").GetComponent<BeatMachine>(); }
// Use this for initialization void Start() { beatMachine = GameObject.Find("BeatMachine").GetComponent <BeatMachine>(); danceOffsetRandomizer = absintheLevel + Random.Range(0.0f, 1.0f); danceHeightRandomizer = Random.Range(0.0f, 0.8f); }