Skip to content

Instantly share code, notes, and snippets.

View arthurom254's full-sized avatar

Arthur Okumu arthurom254

  • Cooperative University
View GitHub Profile
@arthurom254
arthurom254 / MonoSingleton.cs
Created March 20, 2025 10:39 — forked from onevcat/MonoSingleton.cs
Mono singleton Class. Extend this class to make singleton component.
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
/// <summary>
/// Mono singleton Class. Extend this class to make singleton component.
/// Example:
/// <code>
/// public class Foo : MonoSingleton<Foo>
/// </code>. To get the instance of Foo class, use <code>Foo.instance</code>