Пример #1
0
    void printValues()
    {
        Debug.Log("int \"" + TEST_INT + "\" = " + ProfileData.GetInt(TEST_INT, -1));
        Debug.Log("int \"" + TEST_INT + "_1\" = " + ProfileData.GetInt(TEST_INT + "_1", -1));
        Debug.Log("int \"" + TEST_INT + "_2\" = " + ProfileData.GetInt(TEST_INT + "_2", -1));
        Debug.Log("int \"" + TEST_INT + "_3\" = " + ProfileData.GetInt(TEST_INT + "_3", -1));

        Debug.Log("float \"" + TEST_FLOAT + "\" = " + ProfileData.GetFloat(TEST_FLOAT, -1f));
        Debug.Log("float \"" + TEST_FLOAT + "_1\" = " + ProfileData.GetFloat(TEST_FLOAT + "_1", -1f));
        Debug.Log("float \"" + TEST_FLOAT + "_2\" = " + ProfileData.GetFloat(TEST_FLOAT + "_2", -1f));
        Debug.Log("float \"" + TEST_FLOAT + "_3\" = " + ProfileData.GetFloat(TEST_FLOAT + "_3", -1f));

        Debug.Log("string \"" + TEST_STRING + "\" = " + ProfileData.GetString(TEST_STRING, "fail"));
        Debug.Log("string \"" + TEST_STRING + "_1\" = " + ProfileData.GetString(TEST_STRING + "_1", "fail"));
        Debug.Log("string \"" + TEST_STRING + "_2\" = " + ProfileData.GetString(TEST_STRING + "_2", "fail"));
        Debug.Log("string \"" + TEST_STRING + "_3\" = " + ProfileData.GetString(TEST_STRING + "_3", "fail"));

        Debug.Log("Vector3 \"" + TEST_VECTOR3 + "\" = " + ProfileData.GetVector3(TEST_VECTOR3, Vector3.zero));
        Debug.Log("Vector3 \"" + TEST_VECTOR3 + "_1\" = " + ProfileData.GetVector3(TEST_VECTOR3 + "_1", Vector3.zero));
        Debug.Log("Vector3 \"" + TEST_VECTOR3 + "_2\" = " + ProfileData.GetVector3(TEST_VECTOR3 + "_2", Vector3.zero));
        Debug.Log("Vector3 \"" + TEST_VECTOR3 + "_3\" = " + ProfileData.GetVector3(TEST_VECTOR3 + "_3", Vector3.zero));

        Debug.Log("Color \"" + TEST_COLOR + "\" = " + ProfileData.GetColor(TEST_COLOR, Color.black));
        Debug.Log("Color \"" + TEST_COLOR + "_1\" = " + ProfileData.GetColor(TEST_COLOR + "_1", Color.black));
        Debug.Log("Color \"" + TEST_COLOR + "_2\" = " + ProfileData.GetColor(TEST_COLOR + "_2", Color.black));
        Debug.Log("Color \"" + TEST_COLOR + "_3\" = " + ProfileData.GetColor(TEST_COLOR + "_3", Color.black));
    }