Example #1
0
 /// <summary>
 /// Metodo de UNITY que se ejecuta cuando se carga la escena
 /// </summary>
 private void Awake()
 {
     if (clienteDeChat == null)
     {
         clienteDeChat = this;
         DontDestroyOnLoad(gameObject);
     }
     else if (clienteDeChat != this)
     {
         Destroy(gameObject);
     }
 }
Example #2
0
 /// <summary>
 /// Inicializa al cliente del chat
 /// </summary>
 private void RecuperarServicioDeChat()
 {
     ChatClient = ChatCliente.clienteDeChat;
 }