Example #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();
    }
Example #2
0
 public void ChangeType(PlrMessageType type)
 {
     CurrentType = type;
     if (CurrentType == PlrMessageType.Whisper)
     {
         ChatInput.color = Color.blue;
     }
     else
     {
         ChatInput.color = Color.black;
     }
 }
Example #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();
	}
Example #4
0
	public void ChangeType(PlrMessageType type)
	{
		CurrentType = type;
		if(CurrentType == PlrMessageType.Whisper)
		{
			ChatInput.color = Color.blue;
		}
		else
		{
			ChatInput.color = Color.black;
		}
	}