示例#1
0
    private void GenerateCity(int size)
    {
        LoadAssets();

        if (size == 1)
        {
            cityGenerator.GenerateStreetsVerySmall();
        }
        else if (size == 2)
        {
            cityGenerator.GenerateStreetsSmall();
        }
        else if (size == 3)
        {
            cityGenerator.GenerateStreets();
        }
        else if (size == 4)
        {
            cityGenerator.GenerateStreetsBig();
        }

        DestroyImmediate(GameObject.Find("CarContainer"));

        InverseCarDirection(true);
    }