Esempio n. 1
0
    private void createGameObject()
    {
        // Create a game object to handle playback
        _gameObject = new GameObject("SfxrGameObject-" + (Time.realtimeSinceStartup));
        fixGameObjectParent();

        // Create actual audio player
        _audioPlayer = _gameObject.AddComponent <SfxrAudioPlayer>();
        _audioPlayer.SetSfxrSynth(this);
    }
Esempio n. 2
0
    private void createGameObject()
    {
        // Create a game object to handle playback
        _gameObject = new GameObject("SfxrGameObject-" + (Time.realtimeSinceStartup));
        fixGameObjectParent();

        // Create actual audio player
        _audioPlayer = _gameObject.AddComponent <SfxrAudioPlayer>();
        _audioPlayer.SetSfxrSynth(this);
        _audioPlayer.SetRunningInEditMode(Application.isEditor && !Application.isPlaying);
    }
Esempio n. 3
0
    private void createGameObject()
    {
        // Create a game object to handle playback
        _gameObject = new GameObject("SfxrGameObject-" + (Time.realtimeSinceStartup));
        fixGameObjectParent();

        // Create actual audio player
        _audioPlayer = _gameObject.AddComponent<SfxrAudioPlayer>();
        _audioPlayer.SetSfxrSynth(this);
    }
Esempio n. 4
0
	private void createGameObject() {
		// Create a game object to handle playback
		_gameObject = new GameObject("SfxrGameObject-" + (Time.realtimeSinceStartup));
		fixGameObjectParent();

		// Create actual audio player
		_audioPlayer = _gameObject.AddComponent<SfxrAudioPlayer>();
		_audioPlayer.SetSfxrSynth(this);
		_audioPlayer.SetRunningInEditMode(Application.isEditor && !Application.isPlaying);
	}