Curriculum
Course: How to develop 3D Games with Unity
Login
Video lesson

Enemies – Part 1 – Static Observers – Part 2

 

Objectives: 

·        Confirm Correct Setup: Review the previously completed setup of the static gargoyle enemy to ensure everything was done correctly.

 

·        Validate Component Configurations: Check the gargoyle’s components, including animations and colliders, to confirm they are correctly implemented.

·        Assess Script Accuracy: Review the scripts attached to the gargoyle, particularly focusing on their functionality in detecting the player character.

·        UI and Game Ending Scenario Checks: Ensure the user interface elements for game-ending scenarios, like being caught, are properly set up.

 

·        Preparation for Next Tutorial Phase: Ready the project for the subsequent tutorial on dynamic observers, ensuring a smooth transition.

 

Steps:

  1. Review Gargoyle Placement:
    • Revisit the scene to confirm the gargoyle enemy’s placement. Ensure it is correctly positioned as a static observer in the game.
  2. Verify Animator Controller Setup:
    • Check the gargoyle’s animator controller to ensure the idle animation is correctly assigned. Confirm that the animation functions as expected.
  3. Collider Confirmation:
    • Open the gargoyle prefab and verify the presence of a capsule collider. Ensure its settings (center, radius, height) are correctly adjusted.
  4. Line of Sight Setup Review:
    • Confirm the creation and configuration of the ‘Point of View’ empty GameObject. Check its position and orientation for accurate line of sight simulation.
    • Ensure the capsule collider is added to ‘Point of View’, set as a trigger, and properly adjusted.
  5. Scripting Review:
    • Review the ‘Observer’ script attached to the ‘Point of View’ GameObject. Confirm it includes necessary functionalities for detecting the player character.
  6. Prefabrication Completion:
    • Save any changes made during the review process to the gargoyle prefab. Ensure the prefab is updated in the game scene.
  7. UI for Game End Setup:
    • Confirm the setup of UI elements for game-ending scenarios, specifically when the player is caught by the gargoyle.
    • Check for the presence of background images for both caught and exit scenarios.
  8. Script References Check:
    • Verify that the necessary references are correctly assigned in the ‘Game Ending’ script. Ensure all linked objects and images are correctly set up.
  9. Game Testing:
    • Enter play mode to test the gargoyle’s detection functionality and the game-ending sequences.
    • Confirm that the game reacts appropriately when the player character is detected by the gargoyle.