void Awake() { // First we check if there are any other instances conflicting if(instance != null && instance != this) { // If that is the case, we destroy other instances Destroy(gameObject); } //Singleton pattern instance = this; lugaresActuales = new Dictionary<int,List<LugarActual>>(); infoInteractuables = new Dictionary<int,InfoInteractuable>(); contenedores = new Dictionary<int,Contenedor>(); listaEventos = new Dictionary<int,EventoLista>(); }
void Awake() { // First we check if there are any other instances conflicting if (instance != null && instance != this) { // If that is the case, we destroy other instances Destroy(gameObject); } //Singleton pattern instance = this; lugaresActuales = new Dictionary <int, List <LugarActual> >(); infoInteractuables = new Dictionary <int, InfoInteractuable>(); contenedores = new Dictionary <int, Contenedor>(); listaEventos = new Dictionary <int, EventoLista>(); }