void OnTriggerStay2D(Collider2D other) { if (col.bounds.Contains(other.bounds.min) && col.bounds.Contains(other.bounds.max)) { Rock rock = other.GetComponent <Rock>(); if (rock && !rock.destroyed) { rock.DestroyRock(true); GameplayManager.Instance.ChangeCurrentNumber(operation, rock.number); } } }