// Start is called before the first frame update IEnumerator Start() { wrapper = new CoroutineWrapper(this); wrapper.Start(routine()).OnCompleteOnce += () => { Debug.Log("Finish"); }; yield return(new WaitForSeconds(0.5f)); wrapper.Stop(); }
public void StartRound() { m_SpeechProgressRoot.SetActive(true); m_Round.Stop(); // all actors leave foreach (var actor in FindObjectsOfType <Actor>()) { actor.Leave(); } m_CurrentTurn = 0; m_Round.Start(); }