TKK_E32231768/Assets/BtnManager.cs

19 lines
376 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class BtnManager : MonoBehaviour
{
public void pindah_scene(string scenename)
{
SceneManager.LoadScene(scenename);
}
public void sound_volume(float volume)
{
PlayerPrefs.SetFloat("volume", volume);
}
}