- Home /
cursor visible not working please help
cursor after second while be hide this is my code :
Public GameObject Trigger;
public void OnTriggerStay(Collider col)
{
if (input.getkeydown=E)
{
if (col.gameObject.tag="Player")
{
Cursor.Visible=true;
}
}
void OnTriggerExit(Collider col)
{
if(col.gameObject.tag="Player")
{
Cursor.Visible=false;
}
}
Comment
Your answer
Follow this Question
Related Questions
Turning curser on and off 0 Answers
Cursor Not Centered 0 Answers
Unity Cursor changing back 1 Answer
Cursor not getting centered 0 Answers