Create two public Color Variables to Control Fading in and Out. Create three floats to fade the Color.Lerp in and Out.
Optional, use the Fade Delay variable to delay when you want to Color.Lerp back to the Original Color. Always Cache the
SpriteRenderer in the Awake Function. Use two Coroutines to Lerp to and from your chosen colors. Use the Script when the
player or enemy is damaged, powerup, etc.
Leave a Comment, Question or Tutorial Suggestions below!
Road to 3K Subs!
________________
Drop a Like and Subscribe if you haven't already.
Thanks for watching.
Happy Coding!
In questa pagina del sito puoi guardare il video online Color.Lerp Unity Once using Coroutines | No Update Function Beginner Tutorial della durata di ore minuti seconda in buona qualità , che l'utente ha caricato iUnity3Dtutorials 26 marzo 2018, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 4,635 volte e gli è piaciuto 72 spettatori. Buona visione!