character-core

Manage character availability, life cycle, and brain switching in Unity.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/Silac1995/My-World-Isekai-Unity --skill character-core
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: character-core
Source: https://github.com/Silac1995/My-World-Isekai-Unity/tree/main/.agent/skills/character_core
Command: npx skills add https://github.com/Silac1995/My-World-Isekai-Unity --skill character-core

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Central hub that governs a character's availability, life cycle, and brain switching between Player and NPC, providing consistent behavior across gameplay systems.

Core Features & Use Cases

  • Manages IsFree checks to block actions when dead, unconscious, in combat, or busy crafting.
  • Handles life-cycle transitions via SetUnconscious(true) and Die() with corresponding event notifications.
  • Enables seamless context switching between Player and NPC controllers, including UI hookup (e.g., UI_PlayerHUD) and subsystem integration.
  • Uses a Facade-style architecture with a CharacterSystem pipeline to streamline inter-module communication.

Quick Start

Attach the Character Core to a character prefab and wire its availability, lifecycle, and brain-switch logic into your controllers to enable unified state management.

Frequently Asked Questions about character-core

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

FAQPage Schema
How do I manage character availability and state checks in Unity?

Manage character availability in Unity by using a central hub to handle IsFree checks, blocking actions when a character is dead, unconscious, in combat, or busy crafting. This ensures consistent behavior across gameplay systems.

How do I switch between Player and NPC controllers during gameplay?

Switch between Player and NPC controllers by using brain switching logic within a central character core. This handles seamless context transitions, including UI hookup and subsystem integration for consistent control.

What is the best way to handle character death and unconscious states in Unity?

Handle character death and unconscious states in Unity by using dedicated lifecycle methods like SetUnconscious and Die. These trigger corresponding event notifications to ensure safe interactions and consistent state transitions.

Can I use a facade architecture to coordinate character lifecycle actions in Unity?

You can coordinate character lifecycle actions in Unity using a Facade-style architecture with a CharacterSystem pipeline. This streamlines inter-module communication to ensure consistent lifecycle management and safe interactions.

How do I set up a character prefab to block actions during crafting or combat?

Set up a character prefab by attaching a character core component and wiring its availability logic into your controllers. This uses IsFree checks to automatically block specific actions when busy crafting or in combat.