Created
June 29, 2021 14:20
-
-
Save hackertron/7a9417691a786cf298f0171ed721f178 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class Datahandler : MonoBehaviour | |
{ | |
public GameObject furniture; | |
private static Datahandler instance; | |
public static Datahandler Instance | |
{ | |
get | |
{ | |
if(instance == null) | |
{ | |
instance = FindObjectOfType<Datahandler>(); | |
} | |
return instance; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment