public PlayerData(player player) { this.xyz = new float[3]; this.xyz[0] = player.respawnPoint.x; this.xyz[1] = player.respawnPoint.y; this.xyz[2] = player.respawnPoint.z; this.enableDoubleJump = player.GetEnableDoubleJump(); this.level = SceneManager.GetActiveScene().name; }