public override void Process(NetMessage msg)
 {
     if (msg.FullUpdate)
     {
         AdminOverlay.ClientFullUpdate(msg.Entries);
     }
     else
     {
         AdminOverlay.ClientAddEntry(msg.Entries[0]);
     }
 }
 public override void Process()
 {
     if (FullUpdate)
     {
         AdminOverlay.ClientFullUpdate(JsonUtility.FromJson <AdminInfoUpdate>(JsonData));
     }
     else
     {
         AdminOverlay.ClientAddEntry(JsonUtility.FromJson <AdminInfosEntry>(JsonData));
     }
 }
示例#3
0
    public override IEnumerator Process()
    {
        yield return(new WaitForEndOfFrame());

        if (FullUpdate)
        {
            AdminOverlay.ClientFullUpdate(JsonUtility.FromJson <AdminInfoUpdate>(JsonData));
        }
        else
        {
            AdminOverlay.ClientAddEntry(JsonUtility.FromJson <AdminInfosEntry>(JsonData));
        }
    }