Example #1
0
 public override void OnMessageReceive(TyphenApi.IRealTimeMessage message)
 {
     #if UNITY_EDITOR
     Game.Logger.LogWithGreen("[WebSocketApi] Receive " + message.GetType().Name + " Message:", message);
     #endif
 }
Example #2
0
 public override void OnBeforeMessageSend(TyphenApi.IRealTimeMessage message)
 {
     #if UNITY_EDITOR
     Game.Logger.LogWithBlue("[WebSocketApi] Send " + message.GetType().Name + " Message:", message);
     #endif
 }