private void OnCampChange(KProtoBuf buf) { S2C_SYNC_CAMP_CHANGED msg = buf as S2C_SYNC_CAMP_CHANGED; SpacecraftEntity entity = m_GameplayProxy.GetEntityById <SpacecraftEntity>((uint)msg.hero_uid); if (entity != null) { entity.SetCampID((uint)msg.camp_id); } }