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

public class BaseAccess : MonoBehaviour {

    public Text Button_Prompt;
    private void Start()
    {
        Button_Prompt.enabled = false;
    }
    private void OnTriggerEnter(Collider other)
    {
        Button_Prompt.enabled = true;
        Debug.Log("Possible de rentrer dans la base.");
    }

    private void OnTriggerStay(Collider other)
    {
        if (Input.GetButtonDown("Interact"))
        {
            Cursor.visible = true;
            Debug.Log("Scene loading...");
            SceneManager.LoadScene("Hangar", LoadSceneMode.Single);
        }
    }

    private void OnTriggerExit(Collider other)
    {
        Button_Prompt.enabled = false;
    }
}

//﻿using System.Collections;
//using System.Collections.Generic;
//using UnityEngine;
//using UnityEngine.UI;
//using UnityEngine.SceneManagement;

//public class BaseAccess : MonoBehaviour {

//    public Text Button_Prompt;

//    private void OnTriggerEnter(Collider other)
//    {
//        Button_Prompt.gameObject.SetActive(true);
//    }

//    private void OnTriggerStay(Collider other)
//    {
//        if (Input.GetAxis("Submit")>0)
//        {
//            Cursor.visible = true;
//            SceneManager.LoadSceneAsync("Bridge", LoadSceneMode.Single);
//        }
//    }

//    private void OnTriggerExit(Collider other)
//    {
//         Button_Prompt.gameObject.SetActive(false);
//    }
//}<commit_msg>Fix baseAccess<commit_after>﻿//using System.Collections;
//using System.Collections.Generic;
//using UnityEngine;
//using UnityEngine.UI;
//using UnityEngine.SceneManagement;

//public class BaseAccess : MonoBehaviour {

//    public Text Button_Prompt;
//    private void Start()
//    {
//        Button_Prompt.enabled = false;
//    }
//    private void OnTriggerEnter(Collider other)
//    {
//        Button_Prompt.enabled = true;
//        Debug.Log("Possible de rentrer dans la base.");
//    }

//    private void OnTriggerStay(Collider other)
//    {
//        if (Input.GetButtonDown("Interact"))
//        {
//            Cursor.visible = true;
//            Debug.Log("Scene loading...");
//            SceneManager.LoadScene("Hangar", LoadSceneMode.Single);
//        }
//    }

//    private void OnTriggerExit(Collider other)
//    {
//        Button_Prompt.enabled = false;
//    }
//}

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.SceneManagement;

public class BaseAccess : MonoBehaviour
{

    public Text Button_Prompt;

    private void OnTriggerEnter(Collider other)
    {
        Button_Prompt.gameObject.SetActive(true);
    }

    private void OnTriggerStay(Collider other)
    {
        if (Input.GetAxis("Submit") > 0)
        {
            Cursor.visible = true;
            SceneManager.LoadSceneAsync("Bridge", LoadSceneMode.Single);
        }
    }

    private void OnTriggerExit(Collider other)
    {
        Button_Prompt.gameObject.SetActive(false);
    }
}
{'fraction_non_alphanumeric': 0.12215453671048412, 'fraction_numerical': 0.0006412311638345624, 'mean_word_length': 2.372972972972973, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6253616', 'n_tokens_mistral': 922, 'n_tokens_neox': 900, 'n_words': 180}