Visual Audit Protocol

The Variable Vault

Return to Hangar
3A

The Magic Number Trap

The Concept: Named Constants

10
Mystery Value
Damage 10
Named Constant
3B

Floats vs. Ints

The Concept: Precision vs. Wholeness

INT
FLOAT
"Avoid Rounding Deadlock"
3C

The String Menace

The Concept: String Fragility

SECURE
// Corrected: The "Source of Truth" public static class ItemKeys { public const string RED_KEY = "RedKey"; } void OnTriggerEnter(Collider other) { // The IDE will now help you: typing "ItemKeys." shows you all options if (inventory.HasItem(ItemKeys.RED_KEY)) { OpenDoor(); } }
3D

Boolean Logic

The Concept: The "Is" Question

!notOn
isOn
3E

Header & Space

The Concept: Inspector Attributes

public int hp;
public float speed;
[Header]
public int hp;
public float speed;
3F

Tooltips & Help

The Concept: Contextual Metadata

MouseOver Me
"Controls flight sensitivity..."
CAPSTONE EXAM

The Vault Exam

The flight computer is reporting "Data Flux." Identify the three critical variable failures in the AI-generated logic to stabilize the data vault.

Verify Capacity
Check Scope
Audit Efficiency