Example #1
0
        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;
        }
Example #2
0
 void Start()
 {
     IO = KS_FileHelper.Instance;
 }
Example #3
0
 /// <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);
 }
Example #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="iniParser"/> class without loading a file.
 /// </summary>
 public KS_IniParser()
 {
     IO = KS_FileHelper.Instance;
 }
Example #5
0
    // Use this for initialization
    void Start()
    {
        fileHelper = KS_FileHelper.Instance;

        Setup();
    }