- Home /
How to save progress like high scores and money on android onto the device and online
How can I make my high score, money and settings save on android. Like when you put off music in the options menu when you exit and go back it it's still off. And how can i make it also save to your Google Play account or Facebook account and also retrieve it from the storage device and online saved progress.
Answer by martinvali12 · Aug 26, 2017 at 12:47 PM
This is a script for pausing music. Add this script to the main camera in your options menu and then you have to show the script which button is for pausing and which is for making the music play again. using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class mute : MonoBehaviour { public Button ei; public Button jah; // Use this for initialization void Start () { ei.onClick.AddListener (eiole); jah.onClick.AddListener (on); } void eiole () { AudioListener.pause = true; } void on () { AudioListener.pause = false; }
Your answer
Follow this Question
Related Questions
Can't Serialize Color or Vector2 3 Answers
Saving code not working 0 Answers
Problem when saving and loading 1 Answer
how to properly save an int value ? 2 Answers
SerializationException: serializationStream supports seeking, but its length is 0 1 Answer