- Home /
Revive Button Scrpit
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
Answer by monef30 · Sep 19, 2018 at 05:40 PM
friend did you find a way? i want the same script.,friend did you find a way i want the same scripet
Your answer
Follow this Question
Related Questions
Default Button Trigger for press enter? 1 Answer
How to constantly add force to my player when a button is hold? 2 Answers
Moving camera around with GUI buttons 4 Answers
Toggle between animation states with UI button 1 Answer
How can I make GUI button send an input message when I press it? 0 Answers