Exemple #1
0
    DatosJuegos datos;  //Datos con la información de la partida.

    void Awake()
    {
        chat  = GetComponent <ChatManager>();
        IA    = GetComponent <InteligenciaArtificial>();
        datos = FindObjectOfType <DatosJuegos>();

        inspector = new Personaje("Inspector Cenizo", -1, GENERO.Masculino, true);
    }
Exemple #2
0
 void Awake()
 {
     datos = FindObjectOfType <DatosJuegos>();
     if (datos == null)
     {
         GameObject obj = new GameObject();
         datos    = obj.AddComponent <DatosJuegos>();
         obj.name = "Datos del juego.";
     }
 }