Esempio n. 1
0
        public void InitializeLevel()
        {
            if (!targetGrid)
            {
                Debug.LogError("To init level you need t assing the target gridbase first.");
                return;
            }
            if (!levelManager)
            {
                Debug.LogError("To init level you need t assing the target level maanagewr first.");
                return;
            }

            targetGrid.sizeX   = sizeX;
            targetGrid.sizeY   = sizeY;
            targetGrid.sizeZ   = sizeZ;
            targetGrid.scaleXZ = scaleXZ;
            targetGrid.scaleY  = scaleY;

            targetGrid.levelName = levelName;
            targetGrid.InitForEditor(levelManager);
            levelHasInited = true;
            editMode       = true;
        }