How to restart game where i start with.(Unity 3D)
When i restart a game, player respawn where player die. How should i fix it. *Using visual studio.
Thank you
Answer by tormentoarmagedoom · Apr 25, 2018 at 07:56 AM
Good day.
I think you came here without thinking about your problem. Go llok for an answer,m read some posts, watch some tutorials, and if you have the knowladge and the tools will be able to do it yourself.
You are not even giving any information, any code, any parameters.
FAQ :
What are the guidelines for writing good questions?
We want Unity Answers to become a comprehensive database of questions and answers related to Unity. When you ask your questions, it can be helpful to keep a few things in mind:
Don't write things that will be irrelevant in a few days. Writing that "This is urgent!" will probably not get you faster answers, but it may make people frown at your question.
Some reasons for getting a post rejected:
There exists duplicate questions with answers if you were to do a search, either on Answers or on the Forum or on Unity's tutorials
Your question isn't specific enough: asking for a script, asking multiple questions in one post or asking a question that could be either subjective or require extensive discussion
Answer by vinilly · Apr 25, 2018 at 11:33 AM
Try:
public Transform player;
public Transform respawnPoint;
void Start()
{
player.transform.position = respawnPoint.transform.position;
}
Hope this was what you needed. Please vote up to keep me around.