this is my Death Cause Script`using UnityEngine;
using UnityEngine.SceneManagement;
public class PlayerCollision : MonoBehaviour {
public PlayerController Movement;
public void OnCollisionEnter (Collision collisionInfo)
{
if (collisionInfo.collider.tag == "Obstacles")
{
Movement.enabled = false;
FindObjectOfType<Score> ().enabled = false;
FindObjectOfType<GameManger> ().OnDeath ();
Time.timeScale = 0.05f;
Time.fixedDeltaTime = 0.02f * Time.timeScale;
FindObjectOfType<PauseMenu> ().enabled = false;
}
}
}
`
can someone give me script when my player die he can press Revive button if pressed Revive placing player on middle and give him a timer 3 second and game continue with same score