<commit_before>﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;

public class startMenuManager : MonoBehaviour {

	// Use this for initialization
	void Start () {
		
	}
	
	// Update is called once per frame
	void Update () {
		
	}

    public void farm()
    {
        SceneManager.LoadScene("Farm");
    }

    public void snow()
    {
        SceneManager.LoadScene("snow");
    }

    public void quit()
    {
        Application.Quit();
    }
}<commit_msg>menu slider smooth effect by script added<commit_after>﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;

public class startMenuManager : MonoBehaviour
{

    public GameObject ScrollRect;


	// Use this for initialization
	void Start () {
		if( ScrollRect == null) ScrollRect = GameObject.Find("Scrollbar");
	}
	
	// Update is called once per frame
	void Update () {
	    if (!Input.GetMouseButton(0))
	    {
	        GameObject itemToScroll = GameObject.Find("seperator").transform.GetChild(1).gameObject;
            
            if (itemToScroll.transform.localPosition.x > 0 && ScrollRect.GetComponent<Scrollbar>().value > 0)
            {
	            ScrollRect.GetComponent<Scrollbar>().value =
	                Mathf.Lerp(ScrollRect.GetComponent<Scrollbar>().value, 0, 0.05f);
	        }
	        else{
                if (ScrollRect.GetComponent<Scrollbar>().value > 0)
                {
                    ScrollRect.GetComponent<Scrollbar>().value =
                        Mathf.Lerp(ScrollRect.GetComponent<Scrollbar>().value, 1, 0.05f);
                }
            }
        }

	    if (ScrollRect.GetComponent<Scrollbar>().value > 1 || ScrollRect.GetComponent<Scrollbar>().value < 0)
	    {
	        print("error: " + ScrollRect.GetComponent<Scrollbar>().value);
	    }
	}

    public void farm()
    {
        SceneManager.LoadScene("Farm");
    }

    public void snow()
    {
        SceneManager.LoadScene("snow");
    }

    public void quit()
    {
        Application.Quit();
    }
    
}
{'fraction_non_alphanumeric': 0.11612599905970851, 'fraction_numerical': 0.007052186177715092, 'mean_word_length': 2.340659340659341, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 16, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '136302', 'n_tokens_mistral': 658, 'n_tokens_neox': 596, 'n_words': 121}