예제 #1
0
    protected override void assignAudioSource()
    {
        txUIObject  window      = mComponentOwner as txUIObject;
        AudioSource audioSource = window.getAudioSource();

        if (audioSource == null)
        {
            audioSource = window.createAudioSource();
        }
        setAudioSource(audioSource);
    }