feat: Add variable system, scene transition, and improve character layout

- **Introduce Variable System**
  - Added singleton class for variable management
  - Implemented script commands `[var]` and `[add]` for variable control
  - Supported variable substitution (`{variable}`) in dialogue and choices

- **Expand Script Features**
  - Added `[scene]` command for scene transition (load scene and link next script)

- **Improve Character Presentation**
  - Refactored character object hierarchy for better animation control
  - Applied mask-based soft transition effect (Soft Wipe) for expression changes
This commit is contained in:
2025-11-29 06:09:34 +09:00
parent 7a3069fa3c
commit 961f5ab8d8
7 changed files with 137 additions and 13 deletions

View File

@@ -3,7 +3,7 @@ using System.Collections.Generic;
public class ScriptAction
{
public string Type { get; set; }
public Dictionary<string, object> Params { get; set; } = new Dictionary<string, object>();
public Dictionary<string, object> Params { get; set; } = new();
public List<Dictionary<string, string>> Choices { get; set; }
public string GetParam(string key, string defaultValue = "")