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

        _gameController.AddMusician(musician);
    }