void Start()
 {
     ChatAPI.AddGameToServerListener(SendMessage);
     ChatAPI.AddGameToServerListener(SendMessageToAll);
     if (debug)
     {
         StartCoroutine(Test());
     }
 }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     if (trackReceivedMessage)
     {
         ChatAPI.AddListener(DisplayMessageWhenReceived);
     }
     if (trackSendingMessageToUser)
     {
         ChatAPI.AddGameToServerListener(DisplayMessageWhenSend);
     }
     if (trackSendingMessageToAll)
     {
         ChatAPI.AddGameToServerListener(DisplayMessageWhenSendToAll);
     }
 }