mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-10 03:35:10 +00:00
Karate Man shadows no longer fade to white
This commit is contained in:
parent
9d7620feb3
commit
ca2371c743
1 changed files with 4 additions and 1 deletions
|
@ -108,8 +108,11 @@ namespace RhythmHeavenMania.Games.KarateMan
|
||||||
private IEnumerator FadeOut()
|
private IEnumerator FadeOut()
|
||||||
{
|
{
|
||||||
yield return new WaitForSeconds(Conductor.instance.secPerBeat * 3);
|
yield return new WaitForSeconds(Conductor.instance.secPerBeat * 3);
|
||||||
|
var shadowSprite = shadow.GetComponent<SpriteRenderer>();
|
||||||
|
var fadeColor = shadowSprite.color;
|
||||||
|
fadeColor.a = 0;
|
||||||
SpriteRenderer.DOColor(new Color(1, 1, 1, 0), Conductor.instance.secPerBeat * 3).OnComplete(delegate { Destroy(this.gameObject); });
|
SpriteRenderer.DOColor(new Color(1, 1, 1, 0), Conductor.instance.secPerBeat * 3).OnComplete(delegate { Destroy(this.gameObject); });
|
||||||
shadow.GetComponent<SpriteRenderer>().DOColor(new Color(1, 1, 1, 0), Conductor.instance.secPerBeat * 3).OnComplete(delegate { Destroy(shadow); });
|
shadowSprite.DOColor(fadeColor, Conductor.instance.secPerBeat * 3).OnComplete(delegate { Destroy(shadow); });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue