public override void OnInspectorGUI()
        {
            base.OnInspectorGUI();

            LevelDataBuilder levelDataBuilder = (LevelDataBuilder)target;


            if (GUILayout.Button("Create Base Level Data"))
            {
                levelDataBuilder.BuildBaseData();
            }
        }
        /// <summary>
        /// Loads the campaign.
        /// </summary>
        public void LoadCampaign()
        {
            //Used for when editing stuff in editor and still able to use the function of the script through unity editor.
            if (levelDataBuilder == null)
            {
                levelDataBuilder = new LevelDataBuilder();
            }

            currentCampaign = levelDataBuilder.GetCampaign();

            buildAreaController.SpawnPlots(currentCampaign.allLevelDetails[currentCampaign.lastLevelPlayed]);

            SetupSpawningEnemiesPath();
        }