unity-strategy-pattern

Community

Swap gameplay strategies at runtime.

AuthorMuharremTozan
Version1.0.0
Installs0

System Documentation

What problem does it solve?

The Strategy Pattern is used to encapsulate interchangeable algorithms (e.g., Spells, Attacks) using ScriptableObjects, allowing hot-swapping behavior without touching client code in a Unity project.

Core Features & Use Cases

  • Encapsulated Logic: Each behavior (Fireball, Shield, Orbital) lives in its own ScriptableObject or class.
  • Hot-Swapping: Change an entity's behavior at runtime by swapping the strategy asset.
  • Open/Closed Compliance: Add new spells/behaviors without modifying the PlayerController.

Quick Start

Instantiate a new Strategy asset in Unity and assign it to the Player or AI controller to switch behaviors at runtime.

Dependency Matrix

Required Modules

None required

Components

assetsreferences

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: unity-strategy-pattern
Download link: https://github.com/MuharremTozan/Ohm-Yura/archive/main.zip#unity-strategy-pattern

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.