<aside>
<img src="/icons/reorder_gray.svg" alt="/icons/reorder_gray.svg" width="40px" />
Navigation
</aside>
🏠 Home Page
Overview
Progression and Balance
Merge Items & Branches
Dialogs
Energy
Experience
Tutorial
UI Store
💰 Monetization (Ads & IAP)
The tutorial system drives onboarding and contextual hints in the game. It manages a tutorial's lifecycle (init, start, finish), persists its finished state, and drives a shared UI overlay (spotlight mask, pointer, speech bubble) used to guide the player. Concrete tutorials implement only game specific logic: state tracking, save loading, and lifecycle guards are handled by BaseTutorial.
- BaseTutorial: abstract MonoBehaviour. Owns
IsActive / IsFinished state, loads TutorialBaseSave, enforces lifecycle guards.
- TutorialController: scene MonoBehaviour, entry point for game code. Auto discovers every
BaseTutorial in the scene, initializes, activates, and unloads them.
- TutorialCanvasController: UI overlay manager. Pointer animations, canvas reparenting with layout preservation, corner alignment.
- TutorialSpotlightMaskController: full screen dimmer with an animatable rectangular cutout. Spotlights a UI region and lets raycasts pass through the hole only.
- UITutorialMessageBubble: speech bubble widget (portrait, emotion, one line of text) used to narrate a single hint at a time.
- TutorialBoundsHelper: static helper. Computes the encapsulating rect (in a mask's local space) for a set of grid cells or RectTransforms, used to feed the spotlight mask and pointer targeting.
- TutorialBaseSave:
ISaveObject, persists only isFinished per tutorial type. Tutorials that need step level resume add their own save object (see Persisting custom step state below).
Scene structure
How it works
How to add a new tutorial
Existing tutorials in the project
How to check if a tutorial is completed
Public API reference
Persisting custom step state