Exemple #1
0
        //Connect
        private IEnumerator Connect()
        {
            //Setup PTManager
            PTManager.Initialize(true);
            //Start accepting players, wait until player num reached the min requirement
            yield return(Ready());

            //Display all players
            if (autoCreatePlayer)
            {
                yield return(DisplayPlayers());
            }
        }
Exemple #2
0
        IEnumerator Rule()
        {
            //Setup PTManager
            PTManager.Initialize(false);

            yield return(Connect());

            while (true)
            {
                yield return(Store());

                yield return(Game());
            }
        }