IEnumerator StartGame(int [] index) { yield return(new WaitForSeconds(0.3F)); MUI["endgame"][0].Txt[0].text = "DINNERTIME!"; MUI["endgame"][0].TweenActive(true); //yield return new WaitForSeconds(1.0F); //yield return null; for (int i = 0; i < Grands.Length; i++) { Faces[i].SetActive(true); Faces[i].transform.position = _TableManager.EntryDoor.position; } for (int i = Grands.Length - 1; i >= 0; i--) //for(int i = 0; i < _TableManager.Seat.Length; i++) { StartCoroutine(_TableManager.DoorToSeat(Grands[i], index[i], 0.35F)); //yield return new WaitForSeconds(Time.deltaTime * 10); } while (!AllSeated) { yield return(null); } MUI["endgame"][0].TweenActive(false); Ability_ThirdEye(1.3F); Running = true; GameTime = 0.0F; timerobj.Txt[0].text = ""; timerobj.transform.localScale = Vector3.one; timerobj.TweenActive(true); yield return(null); }