Beispiel #1
0
    //  METHODS
    void Awake()
    {
        //  Load settings
        _settings                = new Game2Settings();
        _settings.Volume         = 0.5f;
        _settings.IsMusicPlaying = true;

        //  Set values to panels
        _settingsPanel.InjectValues(_settings);
        _musicPlayerPanel.InjectValues(_settings);
    }
 //  METHODS
 public void InjectValues(Game2Settings settings)
 {
     _settings = settings;
 }