Congrats, herculesking! You gave me my first comment! Thanks! Anyways, I have posted the Unity Project file (called "2D Roguelike.zip") on the game page. Take a look at the Player (Player.cs) script in the file. That is where you will find the code (with comments) for the player attacking enemies. If you have any other questions, feel free to shoot me an email at diculousricky@gmail.com (just make sure to say that you're from itch.io, or else I may mistake it for spam!).