コード例 #1
0
    void Start()
    {
        // Init SteamWorks.net
        if (SteamManager.Initialized)
        {
            Debug.Log("Starting up SteamWorks!");
        }
        else
        {
            Debug.Log("SteamWorks Init Failed!");
        }

        targetFPS = idleFPS;

        prefs   = GetComponent <PlayBounds_Prefs_Handler>();
        handler = OVR_Handler.instance;

        winC = GetComponent <WindowController>();

        // Some SteamCloud Stuff
        // Why the hell is this not a settable public property?
        string prefsPath     = Application.dataPath + "/../";
        string prefsFileName = "prefs.json";

        prefs.SetFilePath(prefsPath, prefsFileName);
        prefs.Load();
        menuRig.SetUIValues();
        LanguageManager.instance.SelectLanguage(prefs.language);
    }
コード例 #2
0
 public void Awake()
 {
     instance = this;
 }
コード例 #3
0
 // Use this for initialization
 void Start()
 {
     prefs = GetComponent <PlayBounds_Prefs_Handler>();
 }