Ask your AI Ask your AI to turn this code into a guided bug-finding exercise.
Claude ChatGPT I am reading "Two enemies share one ActorDefinition. Where should each enemy's current health normally live?" on CodeWiki (https://codewiki.com/practice/mcq/gamedev/unity-scriptableobjects/choose-runtime-state-owner/).
Context (verbatim from the page):
"""
Two enemies share one ActorDefinition. Where should each enemy's current health normally live?
On the enemy component or an ordinary state object owned by it
In a mutable currentHealth field on the shared asset
In the result of ActorDefinition.GetInstanceID()
In AssetDatabase from Player runtime code
"""
Introduce three subtle bugs into the example above and let me find them. Reveal each answer only after I have guessed.
Answer in English. Keep code examples in Game development. Where you are unsure, say so.