Esempio n. 1
0
 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);
 }
Esempio n. 2
0
    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);
    }