When i press e my character teleports away. Like sometiems when i want to put in the code i press e for the pop up and im teleported behind the wall next to me
@@walidbenothmen7741 code looks correct, so do you need to click the numbers, many times before it writes it ? Are there a thing blocking the number ? Other objects ?
I'm really struggling to find a tutorial that'll be useful for my project. This tutorial really helps! Appreciate you shared this.
Thanks for the Nice feedback, glad i could help.
Thank you for your tutorial.
I was just looking for how to open the door with PIN number.
Glad that i could help.
Fantastic tutorial!! thanks for the help!!!!
Thank you, and no problem :)
Amazing video, thank you! Keep up the good work :)
Thank you :)
Thanks for tutorial
Thanks you very much!
No problem :)
Thank you, bro!!
i cant press the buttons on the code
Thank you❤
No problem :)
When i press e my character teleports away. Like sometiems when i want to put in the code i press e for the pop up and im teleported behind the wall next to me
I do the same thing but the keypad doesn't appear do you have any idea thanx for the video
Can i use this also in VR?
how do i add a sound to every time you click a button
You Can check my Tutorial about Sound manager, there it id easy to add it
great video but i have a problem when i enter the code to open the door i have to click many times to get the number.
Hi, Can you share your code, then, I Can take a look ?
@@ClipCollectionVault okay...
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TMPro;
public class OpenDoor : MonoBehaviour
{
private Animator anim;
private bool IsAtDoor = false;
[SerializeField] private TextMeshProUGUI CodeText;
string CodeTextValue = "";
public string safeCode;
public GameObject CodePanel;
// Start is called before the first frame update
void Start()
{
anim = GetComponent();
}
// Update is called once per frame
void Update()
{
CodeText.text = CodeTextValue;
if(CodeTextValue == safeCode)
{
anim.SetTrigger("OpenDoor");
CodePanel.SetActive(false);
}
if(CodeTextValue.Length >= 4)
{
CodeTextValue = "";
}
if(Input.GetKey(KeyCode.E) && IsAtDoor ==true)
{
CodePanel.SetActive(true);
}
}
private void OnTriggerEnter(Collider other)
{
if (other.tag == "Player")
{
IsAtDoor = true;
}
}
private void OnTriggerExit(Collider other)
{
IsAtDoor = false;
CodePanel.SetActive(false);
}
public void AddDigit(string digit)
{
CodeTextValue += digit;
}
}
@@walidbenothmen7741 code looks correct, so do you need to click the numbers, many times before it writes it ? Are there a thing blocking the number ? Other objects ?
thank you :(
Did you get it to work ?
@@ClipCollectionVault yes thank you but i need one more thing if you can i want the game to write pres e to open keypad