コード例 #1
0
    private IEnumerator DelayedGameModeActivation(GameObject gameMode, int initialPlayerCount)
    {
        // Wait a frame for game scene to load
        yield return(new WaitForEndOfFrame());

        m_gameMode.InitializeMode(initialPlayerCount);
        m_gameMode.gameObject.SetActive(true);
    }