您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
33 行
680 B
33 行
680 B
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
namespace GameOptionsUtility
|
|
{
|
|
|
|
public static class GameOptions
|
|
{
|
|
public class Preferences
|
|
{
|
|
public const string prefix = "GameOptions.";
|
|
}
|
|
|
|
public static GraphicOptions graphics;
|
|
public static AudioOptions audio;
|
|
|
|
static GameOptions()
|
|
{
|
|
Initialize();
|
|
}
|
|
|
|
[RuntimeInitializeOnLoadMethod]
|
|
static void Initialize()
|
|
{
|
|
graphics = GraphicOptions.Load();
|
|
graphics.Apply();
|
|
audio = AudioOptions.Load();
|
|
audio.Apply();
|
|
}
|
|
}
|
|
}
|
|
|