private GameObject CreateReservoir(int id, int typeId, string line)
    {
        Vector3 pos = FileReaderHelper.GetPosition(line);

        float totalHead = FileReaderHelper.GetNextNumber(line);

        var obj             = Instantiate(reservoir, pos, Quaternion.identity);
        var reservoirScript = new Reservoir(id, typeId, totalHead);

        obj.GetComponent <Reservoir>().Init(reservoirScript);

        return(obj);
    }
    private GameObject CreateTank(int id, int typeId, string line)
    {
        Vector3 pos = FileReaderHelper.GetPosition(line);

        float volume = FileReaderHelper.GetNextNumber(line);

        line = line.Remove(0, FileReaderHelper.FindNextNumberIndex(line));

        float elevation = FileReaderHelper.GetNextNumber(line);

        var obj        = Instantiate(tank, pos, Quaternion.identity);
        var tankScript = new Tank(id, typeId, volume, elevation);

        obj.GetComponent <Tank>().Init(tankScript);

        return(obj);
    }
    private GameObject CreateJunction(int id, int typeId, string line)
    {
        Vector3 pos = FileReaderHelper.GetPosition(line);

        float baseDemand = FileReaderHelper.GetNextNumber(line);

        line = line.Remove(0, FileReaderHelper.FindNextNumberIndex(line));

        float elevation = FileReaderHelper.GetNextNumber(line);

        line = line.Remove(0, FileReaderHelper.FindNextNumberIndex(line));

        float pressure = FileReaderHelper.GetNextNumber(line);

        var obj            = Instantiate(junction, pos, Quaternion.identity);
        var junctionScript = new Junction(id, typeId, baseDemand, elevation, pressure);

        obj.GetComponent <Junction>().Init(junctionScript);

        return(obj);
    }