Answer the question
In order to leave comments, you need to log in
Why is the object created in the wrong place?
I have a prefab and a script that, at the time of the death of the object, will compare another prefab at the place of the prefab, the objects have different positions, I tried to make their position equal to the position of the prefab where they should appear, but they always appear in the same place
public void Death()
{
_MS.LvlWave++;
Instantiate(DropMoney, Spider.transform.position, Quaternion.identity);// DropMoney создаётся не там, где нужно, Spider - местое создания DropMoney должен быть
Destroy(gameObject);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question