private void OnTriggerEnter2D(Collider2D collision) { if (collision.CompareTag("Item")) { ItemBase item = collision.gameObject.GetComponent <ItemBase>(); item.DragToPlayer(playerTr); } }
private void OnTriggerEnter2D(Collider2D collision) { if (collision.CompareTag("Item")) { ItemBase item = collision.gameObject.GetComponent <ItemBase>(); item.DragToPlayer(playerTr); } }