How do i create a 3d counter attack system

Hey guys, how do I create a counter attack system in unity. I use c# to code but I have no idea how to create the countering system

Try FPS Microgame - Unity Learn for starters.