Example #1
0
        void goToRunnerScene()
        {
            //		int temp = selectSpecies;
            //		PlayerPrefs.SetInt ("species1", temp);

            RequestRRSpecies rs = new RequestRRSpecies();

            rs.send(selectedSpecies);


            if (cManager)
            {
                cManager.Send(rs);
            }


            RequestRRStartGame request = new RequestRRStartGame();

            request.Send(Constants.USER_ID);
            cManager.Send(request);
            //		Application.LoadLevel("CountdownScene");

            // Give the client a message about waiting for the other player to finish selecting.  Hide the PLAY button so
            // player can't send another RequestRRStartGame.  It is cruicial only one RequestRRstartGame is sent from each
            // player.
        }
        void goToRunnerScene()
        {
            //		int temp = selectSpecies;
            //		PlayerPrefs.SetInt ("species1", temp);

            RequestRRSpecies rs = new RequestRRSpecies ();
            rs.send (selectedSpecies);

            if (cManager) {
                cManager.Send (rs);
            }

            RequestRRStartGame request = new RequestRRStartGame ();
            request.Send (Constants.USER_ID);
            cManager.Send (request);
            //		Application.LoadLevel("CountdownScene");

            // Give the client a message about waiting for the other player to finish selecting.  Hide the PLAY button so
            // player can't send another RequestRRStartGame.  It is cruicial only one RequestRRstartGame is sent from each
            // player.
        }