unlock-condition-module

Evaluate composable unlock conditions and track progress in Unity projects.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/punkfuncgames/tetris-clone --skill unlock-condition-module
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unlock-condition-module
Source: https://github.com/punkfuncgames/tetris-clone/tree/main/.claude/skills/unlock-condition-module
Command: npx skills add https://github.com/punkfuncgames/tetris-clone --skill unlock-condition-module

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides a reusable, data-driven system to define, evaluate, and monitor unlock conditions so designers and engineers can gate content, features, or progression without hardcoding checks into gameplay logic.

Core Features & Use Cases

  • Atomic condition types for currency thresholds, stat requirements, upgrade levels, prestige counts, game state checks, and boolean save flags.
  • Composite logic types (AND, OR, NOT) to combine conditions and compute aggregate progress.
  • Reactive service layer that registers conditions, exposes cached unlocked state, progress values, and publishes unlock/lock events for UI and gameplay reactions.
  • Editor testing helpers and descriptive inspector previews to validate conditions during development.
  • Use cases: gating a shop tier behind currency and prestige, unlocking levels based on stats and upgrades, or showing UI progress toward a requirement.

Quick Start

Register a condition with IUnlockConditionService, then query its IsUnlocked state and GetProgress to drive UI or game flow.

Frequently Asked Questions about unlock-condition-module

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I track unlock progress for game features in Unity without hardcoding checks?

You can track unlock progress in Unity by registering ScriptableObject conditions with a reactive IUnlockConditionService, which computes progress, caches evaluations, and publishes unlock or lock events without hardcoding logic. Designers define gates data-driven via atomic and composite condition types.

Can I combine multiple unlock conditions like currency and prestige requirements in Unity?

Yes, you can combine multiple unlock conditions in Unity using composite logic types like AND, OR, and NOT. These composable ScriptableObject conditions allow you to gate content behind aggregate requirements, computing overall progress across currency, stats, upgrades, prestige, game state, or boolean checks.

What is the best way to drive UI updates when a game feature unlocks?

The best way to drive UI updates when a feature unlocks is to subscribe to a reactive IUnlockConditionService API. It publishes unlock and lock events alongside cached progress values, allowing UI components to react immediately to condition resolution changes without manual polling.

Does this Unity unlock condition system support dependency injection for runtime services?

Yes, the Unity unlock condition system supports dependency injection to resolve required runtime services. This allows the IUnlockConditionService to evaluate currency, stat, upgrade, and game state checks dynamically while maintaining a decoupled, data-driven architecture.

How do I test unlock conditions during Unity development?

You can test unlock conditions during Unity development using built-in editor testing helpers and descriptive inspector previews. These tools validate composite and atomic condition logic directly in the inspector, ensuring currency, stat, and boolean gates function correctly before runtime deployment.