Example #1
0
        private void Start()
        {
            random = CreateSeed();

            bonusRegisterer = ship.GetComponent <ItemsCollector>();

            LevelList structure = LevelSettings.GetStructureOfPieces();

            if (structure == null)
            {
                pieces = new List <LevelPiece>();
                pieces.Add(new LevelPiece("EmptyPiece"));
            }
            else
            {
                pieces = RemoveNotSelected(LevelSettings.GetStructureOfPieces().levels);
            }

            piecePosition = new Vector3();
            lastPosition  = GenerateChunk(ship.position.x, 0);
        }
Example #2
0
 public static void SetStructureOfPieces(LevelList list)
 {
     _levelStructure = list;
 }