using System.Collections;
using System.Collections.Generic;
public class Lockpick : MonoBehaviour
public float degrees = 20;
public float speedincrese = 1;
public GameObject center;
public LogicScript logic;
public void OnTriggerStay2D(Collider2D collision)
public void OnTriggerExit2D(Collider2D collision)
logic = GameObject.FindGameObjectWithTag("Score").GetComponent<LogicScript>();
if (Input.GetKeyDown(KeyCode.Space) == true)
degrees = speedincrese * degrees * -1;
alive = GameObject.FindGameObjectWithTag("Lock").GetComponent<Lock>();
transform.RotateAround(center.transform.position, Vector3.forward, degrees * Time.deltaTime);
if (Input.GetKeyDown(KeyCode.Space) == true)