AI Command Lab // Flight Simulator
105B: The Spawner
Initial AI Output (Fragile)
// AI-Generated Code: Reuse Error
public GameObject bullet;
void Fire() {
// Audit Fail: This moves the ORIGINAL bullet blueprint.
// It doesn't create a new one.
bullet.transform.position = gunTip.position;
}
Initial AI Prompt
"You ask the AI: "Fire the bullet.""
Pilot Comm Link
Mission Objective: Tell the AI to use NavMeshObstacles to allow agents to path around dynamic objects.
Optimized Protocol
// Corrected: Cloning Instantiate(bulletPrefab, gunTip.position, gunTip.rotation);