IEnumerator dialogWait() { //Debug.Log("Waiting"); yield return(new WaitForSeconds(transitionTime)); load.Load(0); }
public void LoadPlayer() { PlayerData data = SaveSystem.LoadPlayer(); level = data.level; Debug.Log(level); loading.Load(level); playerhealth.setHP(data.hp); Vector3 position; position.x = data.position[0]; position.y = data.position[1]; position.z = data.position[2]; transform.position = position; //load sirchachas collected sirchachasCollected = data.sirchachasCollected; //score Debug.Log(data.score); manager.ChangeScore(data.score); }