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.
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;
}
`