Ejemplo n.º 1
0
        public static void jsonprototype()
        {
            BallData        ball1   = new BallData("ball1", new Vector3(1.0F, 2.0F, 3.0F));
            BallData        ball2   = new BallData("ball1", new Vector3(4.0F, 5.0F, 6.0F));
            List <BallData> ballist = new List <BallData>();

            ballist.Add(ball1);
            ballist.Add(ball2);
            ForceCommand f1       = new ForceCommand(1000F, 1080F, 0.0F, 0.0F, 1);
            SimGameState sg_state = new SimGameState(ballist, f1);

            Debug.Log(JsonUtility.ToJson(sg_state));
        }
Ejemplo n.º 2
0
 public SimGameState(List <BallData> table_data, ForceCommand fc)
 {
     balls = table_data;
     force = fc;
 }