I got an error "NullReferenceException: Object reference not set to an instance of an object.
PlayerCollision.OnCollisionEnter (UnityEngine.Collision collisionInfo)
(at Assets/Scripts/PlayerCollision.cs:15)
"
I tried to make a script when I enter collision ill respawn but it works only on the first try but it don't work on the second try.