Esempio n. 1
0
    public override void init(ComponentOwner owner)
    {
        base.init(owner);
        txUIObject uiObj = owner as txUIObject;

        setAudioSource(uiObj.getAudioSource());
    }
Esempio n. 2
0
    protected override void assignAudioSource()
    {
        txUIObject  window      = mComponentOwner as txUIObject;
        AudioSource audioSource = window.getAudioSource();

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