spent most of the day implementing the Android back button read it was a requirement to be featured on Google Play Games, so I figured better do it now, rather than later when things get hairy
so, i guess things have already escalated to hairy status. i thought i had it working with half a day’s work, but then i found circumstances i hadn’t accounted for and had to write more code. ended up getting carried on a tangent somehow with menu sfx at the end.
part of the time i spent was trying to consolidate some of the mess i made when i was first starting out, but honestly idk if i even have enough experience to decide what is a better approach.
anyhoo, i trigger the menu sound effects through code now. there were already a few peppered in there with the OnClick events, but it seems easier to see the majority of them all laid out in a script instead of trying to sort through prefab overrides between different scenes’ OnClick events.
i am still using some OnClicks though and I’m not really sure if its bad practice to have all these Audiosource references in my scripts. also, even though i moved a lot of the Play() calls from the OnClick events, there are still Event Triggers for pointer down events. idk, is it more logical now, or more spread and confusing? idk anymore.
hopefully tomorrow i will see with new eyes. the back button seems to work and i added a bit of consistency to the sfx implementation and usage… i think.