更新
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);
|
||||
}
|
||||
|
||||
@@ -10,8 +10,8 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
|
||||
{
|
||||
public partial class DTMNoteVisual : NoteVisualBase
|
||||
{
|
||||
public List<Material> normalMaterialList;
|
||||
public List<Material> highlightMaterialList;
|
||||
public List<List<Material>> normalMaterialList;
|
||||
public List<List<Material>> highlightMaterialList;
|
||||
|
||||
public new static DTMNoteVisual GenerateElement(string elementName, Guid id, List<string> tags,
|
||||
bool isFirstGenerated, string themeBundleName, string objectName, GameElement parentElement, bool isHighlighted)
|
||||
@@ -77,11 +77,16 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
|
||||
|
||||
public override void SetHighlight()
|
||||
{
|
||||
List<Renderer> partRendererList = notePartList.Select(part => part.GetComponent<Renderer>()).ToList();
|
||||
//List<Renderer> partRendererList = notePartList.Select(part => part.GetComponent<Renderer>()).ToList();
|
||||
|
||||
//partRendererList.ForEach(rend => Destroy(rend.material));
|
||||
|
||||
if (!isHighlighted)
|
||||
if (note is Tap or Hold)
|
||||
{
|
||||
extraPartList[0].gameObject.SetActive(isHighlighted);
|
||||
}
|
||||
|
||||
/*if (!isHighlighted)
|
||||
{
|
||||
for (int i = 0; i < partRendererList.Count; i++)
|
||||
{
|
||||
@@ -94,7 +99,7 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
|
||||
{
|
||||
partRendererList[i].material = Instantiate(highlightMaterialList[i]);
|
||||
}
|
||||
}
|
||||
}*/
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -82,7 +82,9 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
|
||||
Renderer rend = part.GetComponent<Renderer>();
|
||||
if (rend != null)
|
||||
{
|
||||
rend.material.SetFloat("_MainAlpha", 1f);
|
||||
rend.materials[0].SetFloat("_MainAlpha", 1f);
|
||||
rend.materials[1].SetFloat("_MainAlpha", 1f);
|
||||
note.track.trackPathSubmodule.path.RebuildImmediate();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user