void getActiveProfile() { serializer = GameObject.Find("_MotionSerializer").GetComponent <SerializationClient>().getSerializer(); if (serializer == null) { serializer = new SimulatorSerialization(); } }
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(); } }
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(); } }
void getActiveProfile() { serializer = GameObject.Find ("_MotionSerializer").GetComponent<SerializationClient>().getSerializer(); if(serializer == null) serializer = new SimulatorSerialization(); }