Move AetherDrive visuals behind runtime owner

This commit is contained in:
Meta Vens 2026-06-14 17:54:23 +01:00
commit d6e478cd5b
4 changed files with 8 additions and 4 deletions

View file

@ -50,7 +50,7 @@ public class ShipInstance : EntityInstance
var drive = ship.GetBehavior<AetherDrive>();
if (drive != null)
{
var particles = Instantiate(UnityHelpers.LoadAsset<ParticleSystem>(drive.DriveData.Particles), transform, false);
var particles = Instantiate(UnityHelpers.LoadAsset<ParticleSystem>(drive.Particles), transform, false);
var main = particles.main;
main.customSimulationSpace = LocalSpace;
_aetherDrive = new AetherDriveInstance