Ok so is there any way by which i can save a variable, such as score, points, etc. in a .txt file? which i can load later in the game…?
i know we can use playerprefs.SetInt() and PlayerPrefs.GetInt() to save a variable very easily but i am curious if we could save it into a .txt or any other file format? using the unity I/O?
let the variable be…
var MyScore : int = 10;