Exemplo 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);
    }
Exemplo 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);
    }
Exemplo 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);
    }
Exemplo 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);
	}