Quantcast
Channel: Answers for "how to save last position for the player before he die"
Browsing all 4 articles
Browse latest View live

Answer by freshgamer10

Create a GameManager script or something along those lines, then create a public static Vector3 and access that variable when you die assigning it the transform.position of the player. Now you just...

View Article



Answer by andrew lukasik

Add to your player script like this one for example: using UnityEngine; using System.Collections; public class RespawnMe : MonoBehaviour { private static Vector3 respawnPosition = Vector3.zero; private...

View Article

Answer by freshgamer10

Create a GameManager script or something along those lines, then create a public static Vector3 and access that variable when you die assigning it the transform.position of the player. Now you just...

View Article

Answer by andrew-lukasik

Add to your player script like this one for example: using UnityEngine; using System.Collections; public class RespawnMe : MonoBehaviour { private static Vector3 respawnPosition = Vector3.zero; private...

View Article
Browsing all 4 articles
Browse latest View live




Latest Images