private void OnTriggerStay2D(Collider2D other) { if (dropped == null) { dropped = other.gameObject.GetComponent <Acceptable>(); } }
protected virtual void OnDestroy() { cam = null; dropped = null; }
private void OnTriggerExit2D(Collider2D other) { dropped = null; }
private void OnTriggerEnter2D(Collider2D other) { dropped = other.gameObject.GetComponent <Acceptable>(); }