IEnumerator MultipleTranslateCoroutine(int nTranslations) { int cpt = 0; while (cpt < nTranslations) { yield return(StartCoroutine(TranslateFromAToBCoroutine(transform.position, transform.position + Random.onUnitSphere * 4, 0.5f, Kryz.Tweening.EasingFunctions.InOutBounce, () => MyTools.ChangeColorRandom(gameObject), () => MyTools.Log("End Action")))); cpt++; } }
public void ChangeColor() { MyTools.ChangeColorRandom(gameObject); }