fixed cymbal bugs
sound no longer breaks (separate game object for sound), ui updated
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user