private void OnTriggerEnter2D(Collider2D collision) { if (changeToTexture != null) { if (collision.gameObject.name == "Eyeball" && locked == false) { blocker.SetActive(true); locked = true; this.gameObject.GetComponentInParent <SpriteRenderer>().sprite = changeToTexture; collision.gameObject.SetActive(false); lvl5.IncrementFromSocket(); } } }