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); }
public void Awake() { instance = this; }
// Use this for initialization void Start() { prefs = GetComponent <PlayBounds_Prefs_Handler>(); }