How to hide x number of button while the button its doing something..
Im doing a main-menu but in some point i need to hide/destroy the buttons but when i do that i cant enter to my corutine because the button that i need to hide is the one tha have the script any suggest?
void OnClick()
{
StartCoroutine(SceneLoad());
Destroy(yourButton);
}
IEnumerator SceneLoad()
{
MainDoor.GetComponent<SimpleDoorObject>().SetOpen();
yield return new WaitForSeconds(1f); // here is where i need to hide or destroy de button or when i click on them
iTween.MoveTo(Camera, CameraNewPosition.transform.position, 4f);
yield return new WaitForSeconds(1f);
ballon.GetComponent<BallonBehavior>().burst();
yield return new WaitForSeconds(1f);
SceneManager.LoadScene(sceneNumber);
Comment