fixed cymbal bugs

sound no longer breaks (separate game object for sound), ui updated
This commit is contained in:
Sam
2023-05-05 12:24:04 -07:00
parent d3dfe2acac
commit 6131bc7ca1
5 changed files with 306 additions and 190 deletions

View File

@@ -59,12 +59,12 @@ public class GameUIController : MonoBehaviour
}
}
public void ToggleCymbal(bool desiredState)
public void ToggleCymbal(bool toggleState)
{
bool curEnabled = clarinetUI.GetComponent<Image>().enabled;
if (curEnabled != desiredState)
bool curEnabled = cymbalUI.GetComponent<Image>().enabled;
if (curEnabled != toggleState)
{
cymbalUI.GetComponent<Image>().enabled = desiredState;
cymbalUI.GetComponent<Image>().enabled = toggleState;
}
}