// Use this for initialization void Start() { // get the Text UI component of this gameObject scoreTextUI = GetComponent <Text>(); // User player = LoginScript.savedUsers.Find(user => user.getScore() == FindObjectOfType<CurrentUser>().currentUser.getScore()); LoginScript.Save(FindObjectOfType <CurrentUser>().currentUser); // StoreCurrencyAndScore(); }