コード例 #1
0
    // 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();
    }
コード例 #2
0
    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();
    }