Пример #1
0
 protected void TargetSendFromChanel(NetworkConnection target, ChatMessage message)
 {
     PlayerChat.instance.ReciveChatMessage(message);
 }
Пример #2
0
 public void SetReciverMessage(ChatMessage message)
 {
     reciver = message.senderId;
     name    = message.author;
 }
Пример #3
0
 public override void SendFromChanel(ChatMessage message)
 {
     TargetSendFromChanel(NetworkServer.objects[message.reciverId].connectionToClient, message);
 }
Пример #4
0
        public override void SendFromPlayerChat(string text)
        {
            ChatMessage msg = new ChatMessage(PlayerChat.instance.netId, reciver, PlayerChat.instance.name, text);

            PlayerChat.instance.CmdSendFromChannel(gameObject, msg);
        }
Пример #5
0
        public virtual void SendFromPlayerChat(string text)
        {
            ChatMessage msg = new ChatMessage(PlayerChat.instance.netId, NetworkInstanceId.Invalid, PlayerChat.instance.name, text);

            PlayerChat.instance.CmdSendFromChannel(gameObject, msg);
        }
Пример #6
0
 protected void RpcSendFromChanel(ChatMessage message)
 {
     PlayerChat.instance.ReciveChatMessage(message);
 }
Пример #7
0
 public virtual void SendFromChanel(ChatMessage message)
 {
     RpcSendFromChanel(message);
 }