Refactor the specified Unity script: $ARGUMENTS
Process
- •Read the script and analyze its structure
- •Identify issues — long methods, god classes, tight coupling, missing patterns, Unity anti-patterns
- •Propose changes to the user before making them
- •Apply refactoring — extract methods, introduce interfaces, apply patterns
- •Validate the refactored script compiles
- •Show diff summary of what changed and why