Tier 3 Series 204

204G: The Servo Exam

Capstone Exam
Pilot Record
Student Profile
"The landing gear is failing. The animation system is using slow string lookups, the pilot's hands are clipping through the controls, and the critical "GearDown" logic was lost when the animation clip was replaced. Identify the three critical servo failures."

Target Asset for Audit

FRAGILE_CODE_DETECTED
using UnityEngine;

public class LandingGear : MonoBehaviour {
    public Animator anim;
    public Transform lever;

    void Update() {
        // Audit Requirement: Lesson 204A (Hashes)
        // Error 1: Magic String Usage
        if (Input.GetKeyDown(KeyCode.G)) {
            anim.SetBool("IsGearDown", true);
        }
    }

    // Audit Requirement: Lesson 204D (IK)
    // Error 2: Missing Hand Connection
    // The hand floats near the lever but doesn't touch it.
    // No OnAnimatorIK method implemented.

    // Audit Requirement: Lesson 204E (Events)
    // Error 3: Logic hidden in Clip Event
    // "PlaySound()" is called via an Animation Event on frame 20.
    void PlaySound() { audio.Play(); }
}

Supervisor's Certification

Authenticated Pilot
pilot_ac66765603b74dc6
Session Secure

Failure Point #1

String Optimization Failure

The AI is using `SetBool("String")` every frame. Command it to use Hash IDs.

Failure Point #2

Kinematic Disconnect

The hand does not physically touch the lever. Command the AI to use Inverse Kinematics.

Failure Point #3

Event Fragility Failure

The sound logic is hidden in a fragile Animation Event. Command the AI to use a Behavior.