更新
This commit is contained in:
@@ -22,6 +22,10 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
|
||||
public override void Recover()
|
||||
{
|
||||
noteVisual.noteMain.SetActive(true);
|
||||
if (note is Hold && noteVisual.isHighlighted)
|
||||
{
|
||||
noteVisual.extraPartList[0].gameObject.SetActive(true);
|
||||
}
|
||||
}
|
||||
|
||||
public override void Adjust()
|
||||
@@ -29,6 +33,11 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
|
||||
effectParticle = LeanPool.Spawn(noteVisual.effectPrefabList[2], noteVisual.judgeEffect.transform).GetComponent<ParticleSystem>();
|
||||
effectParticle.transform.SetParent(EditorManager.instance.cameraManager.gameCamera.transform);
|
||||
effectParticle.Play();
|
||||
|
||||
if (note is Hold && noteVisual.isHighlighted)
|
||||
{
|
||||
noteVisual.extraPartList[0].gameObject.SetActive(false);
|
||||
}
|
||||
noteVisual.noteMain.SetActive(false);
|
||||
LeanPool.Despawn(effectParticle.gameObject, 1);
|
||||
}
|
||||
|
||||
@@ -21,6 +21,11 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
|
||||
public override void Recover()
|
||||
{
|
||||
noteVisual.noteMain.SetActive(true);
|
||||
|
||||
if (note is Hold && noteVisual.isHighlighted)
|
||||
{
|
||||
noteVisual.extraPartList[0].gameObject.SetActive(true);
|
||||
}
|
||||
}
|
||||
|
||||
public override void Adjust()
|
||||
@@ -28,6 +33,12 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
|
||||
effectParticle = LeanPool.Spawn(noteVisual.effectPrefabList[1], noteVisual.judgeEffect.transform).GetComponent<ParticleSystem>();
|
||||
effectParticle.transform.SetParent(EditorManager.instance.cameraManager.gameCamera.transform);
|
||||
effectParticle.Play();
|
||||
|
||||
if (note is Hold && noteVisual.isHighlighted)
|
||||
{
|
||||
noteVisual.extraPartList[0].gameObject.SetActive(false);
|
||||
}
|
||||
|
||||
noteVisual.noteMain.SetActive(false);
|
||||
LeanPool.Despawn(effectParticle.gameObject, 1);
|
||||
}
|
||||
|
||||
@@ -17,19 +17,35 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
|
||||
this.noteVisual = noteVisual;
|
||||
this.effectTime = effectTime;
|
||||
this.noteRenderers = new List<Renderer>();
|
||||
foreach (Renderer renderer in noteVisual.notePartList.Select(part => part.GetComponent<Renderer>()))
|
||||
foreach (GameObject part in noteVisual.notePartList)
|
||||
{
|
||||
noteRenderers.Add(renderer);
|
||||
Renderer rend = part.GetComponent<Renderer>();
|
||||
if(rend != null)
|
||||
{
|
||||
noteRenderers.Add(rend);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override void Recover()
|
||||
{
|
||||
noteVisual.noteMain.SetActive(true);
|
||||
|
||||
|
||||
noteRenderers[0].materials[1].SetFloat("_GlowIntensity", 4f);
|
||||
foreach (var renderer in noteRenderers)
|
||||
{
|
||||
renderer.material.SetFloat("_MainAlpha", 1f);
|
||||
foreach (Material m in renderer.materials)
|
||||
{
|
||||
m.SetFloat("_MainAlpha", 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override void PreExecute()
|
||||
{
|
||||
if (noteVisual is DTMNoteVisualHold)
|
||||
{
|
||||
noteRenderers[0].materials[1].SetFloat("_GlowIntensity", 0.25f);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,7 +55,10 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
|
||||
float alpha = (1 - e) / 4f;
|
||||
foreach (var renderer in noteRenderers)
|
||||
{
|
||||
renderer.material.SetFloat("_MainAlpha", alpha);
|
||||
foreach (Material m in renderer.materials)
|
||||
{
|
||||
m.SetFloat("_MainAlpha", alpha);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -48,7 +67,10 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
|
||||
noteVisual.noteMain.SetActive(false);
|
||||
foreach (var renderer in noteRenderers)
|
||||
{
|
||||
renderer.material.SetFloat("_MainAlpha", 0f);
|
||||
foreach (Material m in renderer.materials)
|
||||
{
|
||||
m.SetFloat("_MainAlpha", 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -22,6 +22,11 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
|
||||
public override void Recover()
|
||||
{
|
||||
noteVisual.noteMain.SetActive(true);
|
||||
|
||||
if (note is Hold && noteVisual.isHighlighted)
|
||||
{
|
||||
noteVisual.extraPartList[0].gameObject.SetActive(true);
|
||||
}
|
||||
}
|
||||
|
||||
public override void Adjust()
|
||||
@@ -32,7 +37,11 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
|
||||
effectParticle.Play();
|
||||
|
||||
// effectParticle.transform.DOMove(noteVisual.noteVisualPosition, 0.2f);
|
||||
|
||||
|
||||
if (note is Hold && noteVisual.isHighlighted)
|
||||
{
|
||||
noteVisual.extraPartList[0].gameObject.SetActive(false);
|
||||
}
|
||||
noteVisual.noteMain.SetActive(false);
|
||||
LeanPool.Despawn(effectParticle.gameObject, 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user