Пример #1
0
 //Tratamiento del singleton de PartidoManager
 void Awake()
 {
     if (manager == null)
     {
         manager = this;
         DontDestroyOnLoad(this.gameObject);
     }
     else
     {
         Destroy(this);
     }
 }
 public PartidosController()
 {
     PartidosManager = new PartidoManager();
 }