void Start()
    {
        ButtonAnimator = this.GetComponent <Animator>();

        GameObject tmp = GameObject.FindWithTag("GlobalReference");

        if (tmp != null)
        {
            GVH = tmp.GetComponent <GlobalVariableHandler>();
        }
    }
    void Start()
    {
        //Initialise the sun
        WorldGlobalLight2D = WorldGlobalLight.GetComponent <UnityEngine.Experimental.Rendering.Universal.Light2D>();

        GameObject tmp = GameObject.FindWithTag("GlobalReference");

        if (tmp != null)
        {
            GVH = tmp.GetComponent <GlobalVariableHandler>();
            LoadExistingWorld = GVH.loadExisting;
            ReadStartMenuSettingToGenerate = GVH.ReadStartSettingsForGen;
        }

        if (LoadExistingWorld)
        {
            if (ReadStartMenuSettingToGenerate)
            {
                SettingWorldName = GVH.LoadworldName;
            }
            SettingWorldPath = Application.persistentDataPath + "/saves/" + SettingWorldName + "/";
            WorldMapPath     = SettingWorldPath + "/map_" + SettingWorldName + "/";
            WorldDataPath    = SettingWorldPath + "/data_" + SettingWorldName + "/";
            LoadWorld();
        }
        else
        {
            if (ReadStartMenuSettingToGenerate)
            {
                SettingWorldName = GVH.GenworldName;
            }
            if (!Directory.Exists(Application.persistentDataPath + "/saves/" + SettingWorldName + "/"))
            {
                SettingWorldPath = Application.persistentDataPath + "/saves/" + SettingWorldName + "/";
            }
            else
            {
                string time = System.DateTime.Now.ToString("_yyyy.MM.dd_HH.mm.ss");
                SettingWorldPath = Application.persistentDataPath + "/saves/" + SettingWorldName + time + "/";
                SettingWorldName = SettingWorldName + time;
                Debug.LogWarning("This world location already exists. To prevent overwriting, the current time was added to the world's name: " + SettingWorldName);
            }

            WorldMapPath  = SettingWorldPath + "/map_" + SettingWorldName + "/";
            WorldDataPath = SettingWorldPath + "/data_" + SettingWorldName + "/";

            Directory.CreateDirectory(SettingWorldPath);
            Directory.CreateDirectory(WorldMapPath);
            Directory.CreateDirectory(WorldDataPath);

            GenerateNewWorld();
        }

        if (CurrentWorldTimeHours >= 12)
        {
            CurrentWorldTimeMinutesCounter = ((CurrentWorldTimeHours - 12) * 60) + CurrentWorldTimeMinutes;
        }
        else
        {
            CurrentWorldTimeMinutesCounter = (CurrentWorldTimeHours * 60) + CurrentWorldTimeMinutes;
        }

        determineIntSpanwPoint();
    }