void Update() { if (ninjaComp != null) { if (Input.GetKeyDown(KeyCode.E)) { ninjaComp.GetKey(); EKey.Instance.Deactivate(); gameObject.SetActive(false); } } }