public override void init(ComponentOwner owner) { base.init(owner); txUIObject uiObj = owner as txUIObject; setAudioSource(uiObj.getAudioSource()); }
protected override void assignAudioSource() { txUIObject window = mComponentOwner as txUIObject; AudioSource audioSource = window.getAudioSource(); if (audioSource == null) { audioSource = window.createAudioSource(); } setAudioSource(audioSource); }