Reflex Training
Mechanic Sector
(Engage card to reveal Pilot's Intelligence.)
The Pilot's Audit
"The AI Trap: "The Static Trap""
// AI-Generated Code: Misunderstanding Scope
public static int highScore;
// Audit Fail: "static" variables persist between SCENES,
// but they are still wiped when the APPLICATION closes.
Protocol Analysis
This is "The RAM Myth." The AI assumes you just mean "Changing Levels," not "Quitting the Game."
Audit Complete
The Pilot's Audit
"The AI Trap: "The Jitterbug""
// AI-Generated Code: Unstable Simulation
void Update() {
// Audit Fail: Applying force in Update means fast PCs push harder
// than slow PCs.
rb.AddForce(transform.forward * 10);
}
Protocol Analysis
This is "Frame-Rate Dependency." The game physics behave differently on a 30FPS laptop vs a 120FPS gaming rig.
Audit Complete
The Pilot's Audit
"The AI Trap: "The Sticky Trap""
// AI-Generated Code: The "Safe" Fire
void OnTriggerEnter(Collider other) {
// Audit Fail: This runs exactly once.
// The player can stand in the fire forever without taking more damage.
ApplyDamage(10);
}
Protocol Analysis
This is "One-Shot Logic." The AI confused the event of entering with the state of being inside. The trap becomes harmless after the first frame.
Audit Complete
The Pilot's Audit
"The AI Trap: "The Legacy Default""
// AI-Generated Code: OUTDATED (Legacy UI)
using UnityEngine.UI; // Audit Fail: Old System
public Text scoreText; // Audit Fail: Use Label instead
void UpdateScore(int val) {
scoreText.text = val.ToString();
}
Protocol Analysis
This system is being phased out for high-performance development. Using it makes your UI harder to style (no USS) and more expensive to render on mobile devices.
Audit Complete
The Pilot's Audit
"The AI Trap: "The Silent Crash""
// AI-Generated Code: Fragile
public class PlayerJump : MonoBehaviour {
void Jump() {
// Audit Fail: What if there is no AudioSource?
// NullReferenceException: Object reference not set to an instance of an object
GetComponent<AudioSource>().Play();
}
}
Protocol Analysis
This is "Dependency Rot." If a designer accidentally removes the AudioSource, the entire Jump mechanic breaks. A professional script enforces its requirements.
Audit Complete
The Pilot's Audit
"The AI Trap: "The Invisible Data""
// AI-Generated Code: Valid C#, but Invisible in Unity
public class ItemStats {
public int weight;
public int cost;
}
public class Inventory : MonoBehaviour {
public ItemStats stats; // Audit Fail: Won't show up!
}
Protocol Analysis
This is "Inspector Blindness." The code compiles, but the `stats` field will not appear in the Unity Editor, making it impossible for designers to balance the game.
Audit Complete
Scanning database for new traps