// 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>(); }
public void Start() { bonusSpawnerScript = GetComponent <BonusSpawnerScript>(); numberOfEnemies = PlayerPrefs.GetInt("numberOfEnemies"); height = PlayerPrefs.GetInt("height"); width = PlayerPrefs.GetInt("width"); if (height > 5 && width > 5) { CreatePlayer(); CreateEnemies(); } }
// Use this for initialization void Start() { LotText = this.GetComponent<Text>(); Jackpot = JackpotText.GetComponent<JackpotScript>(); BonusChance = BonusChanceText.GetComponent<BonusChanceScript>(); BonusSpawner = Spawner.GetComponent<BonusSpawnerScript>(); }