Example #1
0
 public void Start()
 {
     _chat = Chat.AddComponent <NetObject>();
     _chat.OnMessageSendToServer += SendMessage;
 }
Example #2
0
 private void UnsubscribeObject(NetObject netObject)
 {
     netObject.OnMessageSendToServer -= SendMessage;
 }