public void PopulateButton(SkyboxButton button, AudioSource audioSourceDown, AudioSource audioSourceUp) { base.PopulateButton(button, audioSourceDown, audioSourceUp); button.clickOnTriggerExit = true; button.skybox = skybox; button.skyboxManager = skyboxManager; }
protected override void AddButton(GameObject target, AudioSource audioSourceDown, AudioSource audioSourceUp) { SkyboxButton button = Undoable.AddComponent <SkyboxButton>(target); PopulateButton(button, audioSourceDown, audioSourceUp); }