mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
use type prefab
This commit is contained in:
parent
c3634ed7b2
commit
d2b10d3490
@ -81,7 +81,7 @@ namespace NewHorizons.Builder.Atmosphere
|
|||||||
|
|
||||||
foreach (var vectionField in config.VectionFields)
|
foreach (var vectionField in config.VectionFields)
|
||||||
{
|
{
|
||||||
var emitter = Object.Instantiate(_rainEmitterPrefab, effectsGO.transform);
|
var emitter = Object.Instantiate(GetPrefabByType(vectionField.type), effectsGO.transform);
|
||||||
emitter.name = !string.IsNullOrWhiteSpace(vectionField.rename) ? vectionField.rename : emitter.name.Replace("Prefab_", "");
|
emitter.name = !string.IsNullOrWhiteSpace(vectionField.rename) ? vectionField.rename : emitter.name.Replace("Prefab_", "");
|
||||||
emitter.transform.position = planetGO.transform.position;
|
emitter.transform.position = planetGO.transform.position;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user