public void OnReceiveMessage <T>(T Value) { if (Value is Sigal) { Sigal sigal = Value as Sigal; sigalManager.AddSinal(sigal, userInput); } }
public void UpdateData <T>(T Value) { Sigal sigal = Value as Sigal; if (sigal != null) { showMessageText.text = sigal.Data; } }
void PrintIncomingMessage(PacketHeader header, Connection connection, string message) { string newMessage = string.Format("{1} Count:{0} ", count, message); if (OnReceiveMessage != null) { Sigal sigal = new Sigal(newMessage); OnReceiveMessage.Invoke(sigal); } count++; }
public void AddSinal(Sigal sigal, NetUIDemo netUIDemo) { BindData bindData = new BindData(sigal, netUIDemo); bindDatas.Add(bindData); }