void Awake() { DontDestroyOnLoad(this); instance = this; Debug.Log("Starting OWGF Manager"); if (!gameConfig) { Debug.LogError("Game Config not found, Unable to initialize."); return; } // Setup helpers fileHelper = new KS_FileHelper(gameConfig); consoleHelper = new KS_Console(); commands = new ConsoleCommands(); // Saving and loading KS_SaveLoad.gameConfig = gameConfig; }
void Start() { IO = KS_FileHelper.Instance; }
/// <summary> /// Initializes a new instance of the <see cref="iniParser"/> class with loading a file. /// </summary> /// <param name="file">Name of the file you want to load.</param> public KS_IniParser(string file) { IO = KS_FileHelper.Instance; Load(file); }
/// <summary> /// Initializes a new instance of the <see cref="iniParser"/> class without loading a file. /// </summary> public KS_IniParser() { IO = KS_FileHelper.Instance; }
// Use this for initialization void Start() { fileHelper = KS_FileHelper.Instance; Setup(); }