Singleton

com.cupkekgames.singletons — single-file MonoBehaviour singleton base. Foundation primitive extracted from the former com.cupkekgames.core so consumers can opt in without the rest of the grab-bag.

What's inside

Singleton<T> : MonoBehaviour where T : Component — first instance survives via DontDestroyOnLoad; duplicates are destroyed in Awake.

csharp
using CupkekGames.Singletons; public class MyManager : Singleton<MyManager> { // Access via MyManager.Instance }

Asmdef + namespace

CupkekGames.Singletons (runtime). No editor asmdef.

Dependencies

None.

Repository

Cupkek-Games/CupkekGames-Singletons

Settings

Theme

Light

Contrast

Material

Dark

Dim

Material Dark

System

Sidebar(Light & Contrast only)

Light
Dark

Font Family

DM Sans

Wix

Inclusive Sans

AR One Sans

Direction

LTR
RTL