Esempio n. 1
0
 private void Update()
 {
     if (EnvironementGenerator.Instance.PlacedRiverPieces.Count >= RiverLength && !generated)
     {
         generated = true;
         EG.GenerateEnvironment();
     }
 }
    private void Start()
    {
        /* while (EnvironementGenerator.Instance.PlacedRiverPieces.Count < RiverLength)
         * {
         *   GenerateRiver();
         * }*/

        EG.GenerateEnvironment();
    }