protected void TargetSendFromChanel(NetworkConnection target, ChatMessage message) { PlayerChat.instance.ReciveChatMessage(message); }
public void SetReciverMessage(ChatMessage message) { reciver = message.senderId; name = message.author; }
public override void SendFromChanel(ChatMessage message) { TargetSendFromChanel(NetworkServer.objects[message.reciverId].connectionToClient, message); }
public override void SendFromPlayerChat(string text) { ChatMessage msg = new ChatMessage(PlayerChat.instance.netId, reciver, PlayerChat.instance.name, text); PlayerChat.instance.CmdSendFromChannel(gameObject, msg); }
public virtual void SendFromPlayerChat(string text) { ChatMessage msg = new ChatMessage(PlayerChat.instance.netId, NetworkInstanceId.Invalid, PlayerChat.instance.name, text); PlayerChat.instance.CmdSendFromChannel(gameObject, msg); }
protected void RpcSendFromChanel(ChatMessage message) { PlayerChat.instance.ReciveChatMessage(message); }
public virtual void SendFromChanel(ChatMessage message) { RpcSendFromChanel(message); }