Beispiel #1
0
        private IEnumerator sendGame()
        {
            while (moves.Count > 1)
            {
                yield return(new WaitForSeconds(SnakeGameLogic.refreshRate));

                theRenderer.handleBoardUpdate(moves [0]);
                moves.RemoveAt(0);
            }
            yield return(new WaitForSeconds(SnakeGameLogic.refreshRate));

            theRenderer.handleAdminGameOver(moves[0]);
            //theRenderer.displayCrash (new Vector2 (finalMsg.crashPos [0] [0], finalMsg.crashPos [0] [1]));
        }