private void Start() { var storedResValues = saveHandler.LoadResValue(); resEnergy = storedResValues[0]; resMetal = storedResValues[1]; resCrystals = storedResValues[2]; resResearches = storedResValues[3]; resMoney = storedResValues[4]; var storedFactoryLevels = saveHandler.LoadFactoryLevels(); for (var i = 0; i < 5; i++) { _factories[i].Level = storedFactoryLevels[i]; } // Initialization for indicators on bottom panel UpdateResources(); // Starting coroutine for incrementing resources StartCoroutine(ResourcesCoroutine()); }