public void OnSetup(ComponentSystemBase system) { LocalInstigatorId = -1; if (system.HasSingleton <LocalInstigatorId>()) { LocalInstigatorId = system.GetSingleton <LocalInstigatorId>().Value; } snapshotEntityFromEntity = system.GetComponentDataFromEntity <SnapshotEntity>(); }