@@ -26,6 +26,7 @@ namespace Ichni.RhythmGame
|
||||
public float lifeTime;
|
||||
public bool isAutoOrient;
|
||||
public Vector3 particleRotation;
|
||||
public ParticleController.PathNodeSizeMode pathNodeSizeMode;
|
||||
#endregion
|
||||
|
||||
#region [计算与状态缓存] Calculated & Cached States
|
||||
@@ -45,7 +46,8 @@ namespace Ichni.RhythmGame
|
||||
bool prewarm, float playTime, float stopTime,
|
||||
bool is3D, float width, Vector3 extendDirection,
|
||||
float density, float lifeTime,
|
||||
bool isAutoOrient, Vector3 particleRotation)
|
||||
bool isAutoOrient, Vector3 particleRotation,
|
||||
ParticleController.PathNodeSizeMode pathNodeSizeMode = ParticleController.PathNodeSizeMode.LegacyOffset)
|
||||
{
|
||||
ParticleTracker particleTracker = Instantiate(GameManager.Instance.basePrefabs.particleTracker, track.transform)
|
||||
.GetComponent<ParticleTracker>();
|
||||
@@ -57,6 +59,7 @@ namespace Ichni.RhythmGame
|
||||
particleTracker.stopTime = stopTime;
|
||||
particleTracker.themeBundleName = themeBundleName;
|
||||
particleTracker.materialName = materialName;
|
||||
particleTracker.pathNodeSizeMode = pathNodeSizeMode;
|
||||
(particleTracker as IHaveParticles).SetParticleMaterial(themeBundleName, materialName);
|
||||
particleTracker.SetParticleSettings(prewarm, is3D, width, extendDirection, density, lifeTime, isAutoOrient, particleRotation);
|
||||
return particleTracker;
|
||||
@@ -137,6 +140,7 @@ namespace Ichni.RhythmGame
|
||||
particleController.is3D = is3D;
|
||||
particleController.width = width;
|
||||
particleController.extendDirection = extendDirection;
|
||||
particleController.pathNodeSizeMode = pathNodeSizeMode;
|
||||
particleController.Rebuild();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user