Move AetherDrive visuals behind runtime owner
This commit is contained in:
parent
444acc9f30
commit
d6e478cd5b
4 changed files with 8 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue