Kizspy | Question: 22
(Choose 1 answer)
What does the 'SaveScore method do?
using UnityEngine;
public class ScoreSave: MonoBehaviour {
public PlayerScoreData scoreData;
public void SaveScore() {
PlayerPrefs.SetInt("Score", scoreData.playerScore);
PlayerPrefs.Save();
A. Loads a score from PlayerPrefs
B. Saves the score to PlayerPrefs
C. Deletes the score
D. Logs the score