Hi all,
I’m trying to make a top down shooter ad I’d like the enemies mesh (or whatever) to flash white when damaged. Any ideas on how I would go about this?
store the current colour in a variable, change to white, wait “x seconds” change back to original colour. If you know how to use coroutines you could do that, or just handle it within an Update() function
you can change a materials color value like this
GetComponent<MeshRenderer>().material.color = Color.white;