public IEnumerator MoveCharacterReverse() { yield return(new WaitForEndOfFrame()); int _index = GetRandom(); print("Random: " + _index); Vector3 pos = sitPositions[_index].transform.position; iTween.MoveTo(currentCharacter, iTween.Hash("position", pos, "delay", 1f, "time", 1f)); yield return(new WaitForSeconds(2.3f)); GameObject go = sittingCharactersParent.Find(currentCharacter.name).gameObject; go.transform.position = pos; currentCharacter.transform.position = new Vector3(-20f, -1.64f, 0f); sitPositionHolder.Add(_index); yield return(new WaitForSeconds(2)); letCharacter = true; charCounter++; if (PreGameUIManager.instance.noOfCustomers == charCounter) { StartCoroutine(ingameUIManager.GetCounterRoom()); } }