public void OnTextData(PopMessageText Message) { // need to keep this in sync with packet numbers var NewMeta = JsonUtility.FromJson <PacketMeta>(Message.Data); LastPacketMeta = NewMeta; }
public void OnTextMessage(string Message) { if (EnableDebug) { Debug_Log("Text message: " + Message.Substring(0, 40)); } var Msg = new PopMessageText(Message); OnMessageText.Invoke(Msg); }
public void PopMessage(int typeMessage) { if (typeMessage == 0) { PopMessageText pmt = TextNeedMoreCoins.GetComponent <PopMessageText>(); if (pmt) { pmt.Pop(1); } } //if(typeMessage==1) //{ // PopMessageText pmt = TextSelectBaseLocation.GetComponent<PopMessageText>(); // if (pmt) // pmt.Pop(1); //} }