Tier 4
Series 305
305G: The Squadron Exam
Capstone Exam
"The squadron is desynchronized. Pilots are controlling each other's planes, health bars aren't updating for teammates, and missiles are invisible. Identify the three critical network failures to re-establish the link."
Target Asset for Audit
FRAGILE_CODE_DETECTED
using Unity.Netcode;
using UnityEngine;
public class FighterJet : NetworkBehaviour {
public int hullIntegrity = 100;
void Update() {
// Audit Requirement: Lesson 305A (Ownership)
// Error 1: Global Input
if (Input.GetKeyDown(KeyCode.Space)) Fire();
}
void Fire() {
// Audit Requirement: Lesson 305F (Spawning)
// Error 2: Local Instantiation
Instantiate(missilePrefab, transform.position, transform.rotation);
}
public void TakeDamage(int damage) {
// Audit Requirement: Lesson 305B (NetVars)
// Error 3: Local Variable
hullIntegrity -= damage;
}
}