コード例 #1
0
 public override void Process(NetMessage msg)
 {
     if (msg.FullUpdate)
     {
         AdminOverlay.ClientFullUpdate(msg.Entries);
     }
     else
     {
         AdminOverlay.ClientAddEntry(msg.Entries[0]);
     }
 }
コード例 #2
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));
        }
    }