Skip to content

Instantly share code, notes, and snippets.

View BharathVishal's full-sized avatar
🎯
Focusing

Bharath Vishal G BharathVishal

🎯
Focusing
  • Vishtek Studios
  • Chennai, India
  • 04:11 (UTC +05:30)
View GitHub Profile
@BharathVishal
BharathVishal / Singleton_Controller.cs
Created July 1, 2018 06:01
A singleton class written in C# to hold global game state in Unity.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class Singleton_Controller : MonoBehaviour
{
//Singleton Logic
public static Singleton_Controller Instance;