Reflex Training
Mechanic Sector
(Engage card to reveal Pilot's Intelligence.)
The Pilot's Audit
"The AI Trap: "The Instant Spawner""
// AI-Generated Code: GC Spike
void OnCollisionEnter(Collision c) {
// Audit Fail: Creates and Destroys a GameObject every frame.
AudioSource.PlayClipAtPoint(hitSound, c.point);
}
Protocol Analysis
This is "Memory Thrashing." It triggers the Garbage Collector during intense combat, causing frame drops.
Audit Complete
The Pilot's Audit
"The AI Trap: "The Manual Mover""
// AI-Generated Code: The "Dumb" Walker
void Update() {
// Audit Fail: This moves in a straight line.
// It will walk through walls and get stuck on corners.
transform.position = Vector3.MoveTowards(transform.position,
player.position,
speed * Time.deltaTime);
}
Protocol Analysis
This is "Dumb Movement." The AI has no awareness of the environment. It will try to walk through a mountain to get to the player.
Audit Complete
The Pilot's Audit
"The AI Trap: "The Manual Deadzone""
// AI-Generated Code: Hardcoded Math
float x = Input.GetAxis("Horizontal");
if (Mathf.Abs(x) < 0.1f) x = 0;
// Audit Fail: You have to copy-paste this into every script.
Protocol Analysis
This is "Logic Duplication." You are solving a hardware problem inside your gameplay code.
Audit Complete
The Pilot's Audit
"The AI Trap: "The Ghost Hand""
// AI-Generated Code: Static Positioning
// Audit Fail: Hoping the animation lines up with the object.
// If the gun model changes size, the hands will float in air.
animator.Play("HoldGun");
Protocol Analysis
This is "Visual Drift." The character looks like they are using telekinesis instead of holding the object.
Audit Complete
The Pilot's Audit
"The AI Trap: "The String Dependency""
// AI-Generated Code: Slow & Brittle
void Update() {
// Audit Fail: String comparisons are slow (Garbage Creation).
// If you rename "Run" in the Animator, this code breaks silently.
animator.SetBool("Run", true);
}
Protocol Analysis
This is "String Fragility." It creates "Magic Strings" scattered across your codebase that are impossible to refactor.
Audit Complete
The Pilot's Audit
"The AI Trap: "The Tightly Coupled UI""
// AI-Generated Code: Bad Dependency
class Player {
public Text healthText; // Dependency
void TakeDamage() {
health--;
healthText.text = health.ToString();
}
}
Protocol Analysis
This is "Hard Wiring." The Player script now depends on the UI engine. You cannot test the player logic without the UI present.
Audit Complete
Scanning database for new traps