Ejemplo n.º 1
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();
        }
    }