void OnTriggerEnter2D(Collider2D c) { if(c.gameObject.tag == "Enemy") { damageTimer = damageTime; DDRArrowSpawner.ReturnToPool(c.gameObject); } }
void OnTriggerEnter2D(Collider2D c) { if (c.gameObject.tag == "PlayerAttack") { currentDirection = direction; } else if (c.gameObject.tag == "Interactible") { transform.position = defaultPos.position; currentDirection = Vector3.zero; } else if (c.gameObject.tag == "Enemy") { transform.position = defaultPos.position; currentDirection = Vector3.zero; DDRArrowSpawner.ReturnToPool(c.gameObject); } }