diff --git a/Assets/Scripts/Fighters/ArrowController.cs b/Assets/Scripts/Fighters/ArrowController.cs index a3582c93bb5dc30747ce9d67b6f0250a7663af60..51cabf75ea19b3c3df4cf37c6bdb26426f74407e 100644 --- a/Assets/Scripts/Fighters/ArrowController.cs +++ b/Assets/Scripts/Fighters/ArrowController.cs @@ -6,6 +6,7 @@ public class ArrowController : MonoBehaviour { [SerializeField] float speed; + [SerializeField] Opponent opponent; public int direction; Rigidbody2D rb; @@ -24,7 +25,7 @@ public class ArrowController : MonoBehaviour { if (other.CompareTag("AntiPlayer")) { - Debug.Log("Got here"); + other.GetComponent<Fighter>().DealDamage(Mathf.RoundToInt(10 * StatsManager.instance.fighterStats[FighterTypes.ENEMY].damageMultiplier)); Destroy(gameObject); } }