void startGame() { gameTitle.GetComponent <Animator>().SetBool("IsPressed", true); textObject.SetActive(false); SceneChanger changer = gameObject.GetComponent <SceneChanger>(); if (gameStatus != null) { Debug.Log(JsonUtility.ToJson(gameStatus)); changer.LoadNewSceneWithCustomTimer(1f); User user = new User(); user.FirstName = gameStatus.userFirstName; user.LastName = gameStatus.userLastName; user.NickName = gameStatus.userNickName; ElfStatus.SetAttributes((int)gameStatus.maxHealth, (int)gameStatus.maxEnergy, gameStatus.position, user, gameStatus.userKey, gameStatus.scene); } else { changer.LoadSceneWithParams(SceneEnum.SignUp.ToString(), 1f); } }