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

        _gameController.AddMusician(musician);
    }