Skip to content

Instantly share code, notes, and snippets.

View DanielSitarz's full-sized avatar

dieow DanielSitarz

  • Poland
View GitHub Profile
@DanielSitarz
DanielSitarz / MonoSingleton.cs
Created April 12, 2023 13:24 — 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>