Example #1
0
    /// <summary>
    /// Adds an Audio Source to the list managed by AudioManager.
    /// </summary>
    /// <param name="aObject"></param>
    public void addAudioSource(CGameObject aObject)
    {
        CAudioSource source = new CAudioSource(aObject);

        source.setAs3DSource();
        addAudioSource(aObject, source);
    }
Example #2
0
    /// <summary>
    /// Adds an Audio Source to the list managed by AudioManager.
    /// </summary>
    /// <param name="aObject"></param>
    public CAudioSource addAudioSource(CGameObject aObject)
    {
        CAudioSource source = new CAudioSource(aObject);

        source.setAs3DSource();
        addAudioSource(aObject, source);

        return(source);
    }