Question by
zephiruspt · Feb 14, 2016 at 11:01 PM ·
cameracollision detection
Begginers question - already stuck
Hi,
My question is very easy. I'm following this tutorial (http://anwell.me/articles/unity3d-flappy-bird/) and I'm stuck in the part "Killing the Player", more exactly in the Die() method.
The Application.LoadLevel(Application.loadedLevel);
is deprecated and I think I have to change it to SceneManager.LoadScene(SceneManager.GetActiveScene().name);
Unfortunatly this does solve my issues, i.e. the game is not restarted when the player goes of screen or collides with the objects.
In unity I also get this message: missingcomponentexception there is no camera attached to the player game object
Can someone help me with this?
Thanks!
Comment