Ejemplo n.º 1
0
 void getActiveProfile()
 {
     serializer = GameObject.Find("_MotionSerializer").GetComponent <SerializationClient>().getSerializer();
     if (serializer == null)
     {
         serializer = new SimulatorSerialization();
     }
 }
Ejemplo n.º 2
0
    void OnGUI()
    {
        if(GUI.Button(new Rect(Screen.width/2,Screen.height/2,200,200),"Load Test Profile")) {
            serializer = serializer.Load(serializer.profile);
        }

        if(GUI.Button(new Rect(Screen.width/2 + 250,Screen.height/2,200,200),"Save Test Profile")) {
            serializer.Save();
        }
    }
Ejemplo n.º 3
0
    void OnGUI()
    {
        if (GUI.Button(new Rect(Screen.width / 2, Screen.height / 2, 200, 200), "Load Test Profile"))
        {
            serializer = serializer.Load(serializer.profile);
        }

        if (GUI.Button(new Rect(Screen.width / 2 + 250, Screen.height / 2, 200, 200), "Save Test Profile"))
        {
            serializer.Save();
        }
    }
Ejemplo n.º 4
0
 void getActiveProfile()
 {
     serializer = GameObject.Find ("_MotionSerializer").GetComponent<SerializationClient>().getSerializer();
     if(serializer == null)
         serializer = new SimulatorSerialization();
 }