Thursday, March 27, 2014

1. Simple Player Attack Script - Unity - C#

THE FOLLOWING SCRIPT WILL NOT WORK 100% ON ITS OWN, IT REFERS TO ANOTHER SCRIPT NOT POSTED ON THIS BLOG YET.

IF
  1. the user presses and releases the F key,
  2. the player distance from the enemy is less than 2
  3. the enemy is in front of the player (on a rotation scale of -1 to 1, "Think of Quadrants on XY Graph")
THEN
  • Player will attack and decrease enemy Health by 10.
Click button below to show script

No comments:

Post a Comment