コード例 #1
0
        void Awake()
        {
            renderSystem = GameObject.Find("RenderSystem").GetComponent <RenderSystem>();

            size  = Info.Map.Size;
            width = Info.Map.Width;

            edgesValid = false;

            selectedCell = new int2();

            cells        = Enumerable.Repeat(new Data.Cell(), Info.Map.Area).ToList();
            edges        = new List <int>(Info.Map.Area * Info.Map.Area);
            rooms        = new List <Data.Room>(Info.Map.NumberOfSeedRooms);
            placeholders = new List <RectInt>();

            SetupCells();
            SetupBase();
            SetupPaths();

            RoomBuilder.LayoutRooms(rooms, placeholders);

            SetupRooms();
            SetupColonyBases();

            ConstructMap();
        }