Hello
I created a ui image and a start button
When the image of the audio is selected via the navigation it turns grey this is good.
Also when i press enter the sprite changes to a volume button with a grey arrow in the middle.
But when i press enter again the audiolistener goes back to 1 but the sprite doesnt change back to the volume icon it does work when i press the down button so jt goes back to the other button and then back to volume and press enter the speite does change. But i wanf that you can do it whenever the slected sprite is the audio icon
Here is my script
Private sprite mutesound;
Private sprite notmuted;
If(input.getbuttondown("button")
{
If (audilistener.volume == 0)
{
audiolostener.volume = 1;
Spritechange to nonmuted
}
If (audilistener.volume == 1)
{
audiolostener.volume = 0;
Spritechange to muted;
}
Above code was typed on phone so not really great.
Hope someone can help