public override void interact() { if (auto) { return; } if (unlocked) { if (open) { closedoor(); } else { opendoor(); } return; } fpctrl.position = playerspawn.position; lockpick.gameObject.SetActive(true); lockpick.position = toolsspawn.position; lockpick.LookAt(cam); thief.noinp(); toggled = true; thief.incrime = true; }
public override void interact() { if (tries <= 0) { return; } player.noinp(); closepopup(); trywrap.gameObject.SetActive(true); hackwrap.gameObject.SetActive(true); rightwrap.gameObject.SetActive(true); toggled = true; //ui.SetActive (true); }