public void SyncReceive(byte[] data) { if (!this.VerifyReceive()) { return; } this.last = this.Read(data); this.needsUpdate = true; if (this.syncUpdateRate == SyncUpdateRate.UpdateImmediate) { this.SyncUpdate(); } if (Networker.mode == NetworkerMode.Client) { } if (Networker.mode == NetworkerMode.Server) { if (this.serverSyncOptions.Has("SendUponReceiving")) { int clientID = this.serverSyncOptions.Has("OnlyOwner") ? Networker.GetActiveID() : -1; int excludeID = this.serverSyncOptions.Has("ExcludeOwner") ? Networker.GetActiveID() : -1; Networker.SendDataToClients(this.eventName, this.GetBytes(), clientID, excludeID); } } }