private void OnCollisionEnter2D(Collision2D collision) { if (_input.GetGrab() && collision.gameObject.name.Contains("Goblin") && _grabbedGoblin == null && GrabEnabled) { _grabbedGoblin = collision.gameObject.GetComponent <Goblin>(); if (!_grabbedGoblin.IsGrabbed) { _grabbedGoblin.GetGrabbed(this); _hasGoblin = true; GrabEnabled = false; new Timer(_grabstrength, DropGoblin); } else { _grabbedGoblin = null; } } }