Skip to content

Instantly share code, notes, and snippets.

@kalkuz
kalkuz / SingletonMonoBehaviour.cs
Last active September 11, 2022 22:18
Singleton MonoBehaviour class template which helps to build over when you need Singletons in Unity.
using UnityEngine;
[DisallowMultipleComponent]
public class SingletonMonoBehaviour : MonoBehaviour
{
private static SingletonMonoBehaviour m_instance;
public static SingletonMonoBehaviour Instance
{
get
{
@kalkuz
kalkuz / settings.json
Created January 2, 2023 06:02
My VSCode settings
{
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"eslint.validate": ["javascript"],
"css.remoteStyleSheets": [
"https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
]
}