Tier 3 Series 203

203G: The Avionics Exam

Capstone Exam
Pilot Record
Student Profile
"The cockpit displays are glitching. The HUD is misaligned on different screens, the weapon buttons are exposing private logic, and the fuel gauge is crashing the engine script. Identify the three critical interface failures."

Target Asset for Audit

FRAGILE_CODE_DETECTED
using UnityEngine;
using UnityEngine.UI;

public class ShipHUD : MonoBehaviour {
    // Audit Requirement: Lesson 203A/B (Toolkit)
    // Error 1: Legacy UI References
    public Text healthText;

    void Update() {
        // Audit Requirement: Lesson 203C (MVC)
        // Error 2: Searching every frame
        GameObject.Find("Score").GetComponent<Text>().text = "100";
    }

    // Audit Requirement: Lesson 203D (Events)
    // Error 3: Public Method for Button
    public void OnFireClicked() {
        Fire();
    }
}

Supervisor's Certification

Authenticated Pilot
pilot_842a6d1ee0a312c5
Session Secure

Failure Point #1

Legacy Tech Failure

The AI is using `UnityEngine.UI` (Canvas). Command it to use the UI Toolkit.

Failure Point #2

Coupling Failure

The AI is using `GameObject.Find` inside Update. Command it to use MVC Pattern.

Failure Point #3

Encapsulation Failure

The AI made `OnFireClicked` public for the inspector. Command it to use code-based callbacks.