Tier 3
Series 204
204G: The Servo Exam
Capstone Exam
"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(); }
}