// Use this for initialization void Start() { PlaySE = this.GetComponent<AudioSource>(); scoreS = scoreText.GetComponent<ScoreScript>(); bonusSpawn = bonusSpawner.GetComponent<BonusSpawnerScript>(); bonuschance = bonusLevelText.GetComponent<BonusChanceScript>(); timeScript = TimeText.GetComponent<TimeScript>(); }
// Use this for initialization void Start() { LotText = this.GetComponent<Text>(); Jackpot = JackpotText.GetComponent<JackpotScript>(); BonusChance = BonusChanceText.GetComponent<BonusChanceScript>(); BonusSpawner = Spawner.GetComponent<BonusSpawnerScript>(); }