public IEnumerator CallAllTheMethodsOneByOne() { for (var i = 0; i < methodsList.Count; i++) { yield return(new WaitUntil(() => callMethods.Call_One_Bool_Method(methodsList, i) == true)); } yield return(null); }
public IEnumerator CallAllTheMethodsOneByOne(List <EditorMethodsList.MethodsList> listOfMethods, int value, bool TorF) { for (var i = 0; i < listOfMethods.Count; i++) { yield return(new WaitUntil(() => callMethods.Call_One_Bool_Method(listOfMethods, i) == true)); } yield return(new WaitForEndOfFrame()); if (value == 0) // InitRenderer { InitRenderer(gameObject, TorF); } else if (value == 1)// Set active { gameObject.SetActive(TorF); } yield return(null); }