So, I made a mistake and after creating Level 1 and Level 2, the blocks are in different positions on the X,Y,Z grid (The tip of reseting the position of every gameobject is real, people) . So, when the level changes, the Score gets out of the main camera.
How can I reset the position of Score Text ?
I tried adding the line: scoreText.transform.position = new Vector3(435, 477, -8241); on the Aweke, like so:
int gameStatusCount = FindObjectsOfType().Length;
if (gameStatusCount > 1)
{
scoreText.transform.position = new Vector3(435, 477, -8241);
gameObject.SetActive(false);
Destroy(gameObject);
}
else
{
DontDestroyOnLoad(gameObject);
}
How can I change the position on the ScoreText? How can I name a game object from another scene?
Thank you everyone!