@@ -43,7 +43,7 @@ Material:
|
||||
- _QueueControl: 0
|
||||
- _QueueOffset: 0
|
||||
- _ReceiveShadows: 1
|
||||
- _Ring_Opacity: 0.005
|
||||
- _Ring_Opacity: 0.103
|
||||
- _XRMotionVectorsPass: 1
|
||||
- _count: 3
|
||||
- _cube_radius: 0.088
|
||||
@@ -51,21 +51,22 @@ Material:
|
||||
- _cube_width: 0.032
|
||||
- _gap_softness: 0.44
|
||||
- _gapsize: 0.454
|
||||
- _point2_Opacity: 0.01
|
||||
- _point2_radius: 0
|
||||
- _point2_softness: 0
|
||||
- _point2_width: 0.3
|
||||
- _point_radius: 0
|
||||
- _point2_Opacity: 0.037
|
||||
- _point2_radius: 0.063
|
||||
- _point2_softness: 0.241
|
||||
- _point2_width: 0.068
|
||||
- _point_radius: 0.018
|
||||
- _point_softness: 0
|
||||
- _point_width: 0.095
|
||||
- _ring_radius: 0.669
|
||||
- _ring_rotation: -1
|
||||
- _ring_rotation: 0
|
||||
- _ring_rotation_angle: 0
|
||||
- _ring_softness: 0
|
||||
- _ring_width: 0.033
|
||||
m_Colors:
|
||||
- _Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
- _EmissionColor: {r: 1, g: 1, b: 1, a: 1}
|
||||
- _ImageColor: {r: 8.47419, g: 8.47419, b: 8.47419, a: 1}
|
||||
- _ImageColor: {r: 0.7490196, g: 0.7490196, b: 0.7490196, a: 1}
|
||||
m_BuildTextureStacks: []
|
||||
m_AllowLocking: 1
|
||||
--- !u!114 &2669937578497038573
|
||||
|
||||
@@ -1196,7 +1196,7 @@ ParticleSystem:
|
||||
m_RotationOrder: 4
|
||||
separateAxes: 0
|
||||
RotationModule:
|
||||
enabled: 0
|
||||
enabled: 1
|
||||
x:
|
||||
serializedVersion: 2
|
||||
minMaxState: 0
|
||||
@@ -1306,7 +1306,7 @@ ParticleSystem:
|
||||
curve:
|
||||
serializedVersion: 2
|
||||
minMaxState: 0
|
||||
scalar: 0.7853982
|
||||
scalar: 0
|
||||
minScalar: 0.7853982
|
||||
maxCurve:
|
||||
serializedVersion: 2
|
||||
@@ -1358,7 +1358,7 @@ ParticleSystem:
|
||||
m_RotationOrder: 4
|
||||
separateAxes: 0
|
||||
ColorModule:
|
||||
enabled: 0
|
||||
enabled: 1
|
||||
gradient:
|
||||
serializedVersion: 2
|
||||
minMaxState: 1
|
||||
@@ -1368,30 +1368,30 @@ ParticleSystem:
|
||||
serializedVersion: 2
|
||||
key0: {r: 1, g: 1, b: 1, a: 1}
|
||||
key1: {r: 1, g: 1, b: 1, a: 1}
|
||||
key2: {r: 0, g: 0, b: 0, a: 0}
|
||||
key3: {r: 0, g: 0, b: 0, a: 0}
|
||||
key4: {r: 0, g: 0, b: 0, a: 0}
|
||||
key5: {r: 0, g: 0, b: 0, a: 0}
|
||||
key2: {r: 1, g: 1, b: 1, a: 1}
|
||||
key3: {r: 1, g: 1, b: 1, a: 0}
|
||||
key4: {r: 1, g: 1, b: 1, a: 0}
|
||||
key5: {r: 1, g: 1, b: 1, a: 0}
|
||||
key6: {r: 0, g: 0, b: 0, a: 0}
|
||||
key7: {r: 0, g: 0, b: 0, a: 0}
|
||||
ctime0: 0
|
||||
ctime1: 65535
|
||||
ctime2: 0
|
||||
ctime3: 0
|
||||
ctime4: 0
|
||||
ctime5: 0
|
||||
ctime2: 65535
|
||||
ctime3: 65535
|
||||
ctime4: 65535
|
||||
ctime5: 65535
|
||||
ctime6: 0
|
||||
ctime7: 0
|
||||
atime0: 0
|
||||
atime1: 65535
|
||||
atime2: 0
|
||||
atime2: 65535
|
||||
atime3: 0
|
||||
atime4: 0
|
||||
atime5: 0
|
||||
atime6: 0
|
||||
atime7: 0
|
||||
m_Mode: 0
|
||||
m_ColorSpace: -1
|
||||
m_ColorSpace: 0
|
||||
m_NumColorKeys: 2
|
||||
m_NumAlphaKeys: 2
|
||||
minGradient:
|
||||
@@ -4882,7 +4882,7 @@ ParticleSystemRenderer:
|
||||
m_AllowRoll: 1
|
||||
m_FreeformStretching: 0
|
||||
m_RotateWithStretchDirection: 1
|
||||
m_UseCustomVertexStreams: 0
|
||||
m_UseCustomVertexStreams: 1
|
||||
m_VertexStreams: 00010304
|
||||
m_UseCustomTrailVertexStreams: 0
|
||||
m_TrailVertexStreams: 00010304
|
||||
@@ -9785,7 +9785,7 @@ MonoBehaviour:
|
||||
themeBundleName:
|
||||
objectName:
|
||||
isStatic: 0
|
||||
headPoint: {fileID: 4577072593820393136}
|
||||
headPoint: {fileID: 213058329049743950}
|
||||
headCircle: {fileID: 4577072594143320190}
|
||||
sparks: {fileID: 4577072594657777396}
|
||||
trailBody: {fileID: 2699665565157051537}
|
||||
|
||||
@@ -27,7 +27,8 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
|
||||
public float enableProcessTime = 0.5f; // headPoint,headCircle的启用/禁用过程时间,默认为0.5秒,启用完成后,sparks开启,禁用开始时,sparks关闭。
|
||||
public float headSize = 1f; // headPoint和headCircle的目标大小,默认为1。
|
||||
public FlexibleFloat headRotateSpeed; // headCircle的旋转速度(Particle.rotationOverLifetime的angular velocity)
|
||||
|
||||
private float _ChachedAngle;
|
||||
private ParticleSystem _HitPoint;
|
||||
public Material EffectMaterial;
|
||||
|
||||
float IHaveTrail.visibleTimeLength
|
||||
@@ -124,6 +125,10 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
|
||||
sparks.gameObject.SetActive(false);
|
||||
headPoint.transform.localScale = Vector3.zero;
|
||||
headCircle.transform.localScale = Vector3.zero;
|
||||
if (headPoint != null)
|
||||
{
|
||||
_HitPoint = headPoint.GetComponent<ParticleSystem>();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -164,11 +169,15 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
|
||||
|
||||
if (headPoint != null)
|
||||
{
|
||||
var ps = headPoint.GetComponent<ParticleSystem>();
|
||||
if (ps != null)
|
||||
_HitPoint = headPoint.GetComponent<ParticleSystem>();
|
||||
if (_HitPoint != null)
|
||||
{
|
||||
var main = ps.main;
|
||||
main.startColor = desaturatedColor;
|
||||
var main = _HitPoint.main;
|
||||
//main.startColor = desaturatedColor;
|
||||
var col = _HitPoint.colorOverLifetime;
|
||||
col.enabled = true;
|
||||
col.color = new ParticleSystem.MinMaxGradient(desaturatedColor, desaturatedColor);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -262,7 +271,14 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
|
||||
DisableHead();
|
||||
isHeadEnabled = false;
|
||||
}
|
||||
|
||||
headRotateSpeed.UpdateFlexibleFloat(songTime);
|
||||
// _ChachedAngle += headRotateSpeed.value;
|
||||
if (_HitPoint != null)
|
||||
{
|
||||
var rot = _HitPoint.rotationOverLifetime;
|
||||
rot.enabled = true;
|
||||
rot.z = headRotateSpeed.value;
|
||||
}
|
||||
visibleTimeLength.UpdateFlexibleFloat(songTime);
|
||||
if (visibleTimeLength.animations.Count > 0 && EditorManager.instance.musicPlayer.isPlaying && trailRenderer.time != visibleTimeLength.value)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user