public IEnumerator AddElementCoroutine() { isInElementCoroutine = true; AddElementEvent.Raise(); newPlanet.AddElement(elementGUI.selectedElementIndex); Debug.Log("Raised Add element event"); yield return(new WaitForSeconds(0.5f)); isInElementCoroutine = false; }