Пример #1
0
    public void AddMessage(string user, string body, PlrMessageType type)
    {
        Message m = new Message();

        m.user  = user;
        m.body  = body;
        m.mType = type;
        ChatMsgs.Add(m);
        Redraw();
    }
Пример #2
0
 public void ChangeType(PlrMessageType type)
 {
     CurrentType = type;
     if (CurrentType == PlrMessageType.Whisper)
     {
         ChatInput.color = Color.blue;
     }
     else
     {
         ChatInput.color = Color.black;
     }
 }
Пример #3
0
	public void AddMessage(string user, string body, PlrMessageType type)
	{
		Message m = new Message();
		m.user = user;
		m.body = body;
		m.mType = type;
		ChatMsgs.Add(m);
		Redraw();
	}
Пример #4
0
	public void ChangeType(PlrMessageType type)
	{
		CurrentType = type;
		if(CurrentType == PlrMessageType.Whisper)
		{
			ChatInput.color = Color.blue;
		}
		else
		{
			ChatInput.color = Color.black;
		}
	}