Exemple #1
0
        /// <summary>
        /// This is specific to adding the player cube so that we can save
        /// some of the data about the cube (player mass, name, uid, etc.)
        /// </summary>
        /// <param name="json"></param>
        public void AddPlayerCube(string json)
        {
            Cube cube = Cube.Create(json);

            ProcessIncomingCube(cube);
            Player_Start_Mass = cube.Mass;
            Player_Name       = cube.Name;
            Player_UID        = cube.UID;
        }