public void Generate()
    {
        _root = new GameObject("Root").transform;
        GeneratePlatform(_firstPlatform);
        for (var i = 1; i <= _countPlatform; i++)
        {
            PlatformData platform = _platforms[Random.Range(0, _platforms.Length)];
            GeneratePlatform(platform);
        }

        if (_isGenerateLastPlatform)
        {
            PlatformBehaviour child = _root.GetChild(_root.childCount - 1).GetComponent <PlatformBehaviour>();
            child.GenerateNewPart();
        }
    }