public void Randomise() { _musoNameInput.text = MusicianCreationHelper.GetRandomName(); _bandNameInput.text = MusicianCreationHelper.GetRandomName(); _musicianPortrait.sprite = MusicianCreationHelper.GetRandomSprite(); _instrumentDropdown.value = rnd.Next(_instrumentDropdown.options.Count); }
public void Start() { _gameController = Instantiate(_gameControllerPrefab).GetComponent <GameController>(); _gameController.gameObject.name = "GameController"; _musicianPortrait.sprite = MusicianCreationHelper.GetRandomSprite(); }
private void AddRandomMusician() { Musician musician = new Musician(MusicianCreationHelper.GetRandomName(), MusicianCreationHelper.GetRandomInstrument(), MusicianCreationHelper.GetRandomSprite()); _gameController.AddMusician(musician); }