Visual Audit Protocol

The Data Vault

Return to Hangar
106A

The Volatile Memory

The Concept: Persistence

Volatile (RAM)
Wiped on Exit
Persistent (Disk)
// Corrected: Disk Write PlayerPrefs.SetInt("HighScore", score); PlayerPrefs.Save();
106B

The Key Ring

The Concept: Key Management

10
Mystery Value
Damage 10
Named Constant
106C

The Data Model

The Concept: Serialization Class

Loose Variables
Gold
Level
Items
[Serializable]
SaveData
106D

The JSON Carrier

The Concept: JsonUtility

C#
Object
JsonUtility
ToJSON FromJSON
{
"id":1
}
TXT
String
106E

The File Path

The Concept: Persistent Data Path

PC Only
C:/Users/...
Android
CRASH
// Corrected: Safe Path string path = Path.Combine(Application.persistentDataPath, "save.json");
106F

The Checksum

The Concept: Data Integrity

Modified
Hash Valid
// Corrected: Tamper Proofing // (Conceptual Code) if (CalculateHash(json) != savedHash) Debug.LogError("Cheater!");
CAPSTONE EXAM

The Vault Exam

The save system is failing. The high score resets when the game is closed, the inventory fails to load on Android, and the save file works on PC but crashes on Mac. Identify the three critical data failures.

Verify Capacity
Check Scope
Audit Efficiency