hey everyone! i need some help with a really simple js. (my skills are limited, i’m a bloody beginner)
so, what i want to acchive:
player hits the target, fade to black (or if it’s not too hard - the image gets blurred), and after 1 sec. the scene restarts.
my death-collision js looks like this right now:
function OnCollisionEnter (collision : Collision)
{
if(collision.gameObject.tag == "Enemy")
{
Application.LoadLevel("mylevel01");
}
}
this prefectly working, but if got no clue how to fade and restart the scene after 1 sec.