1. The number of units the projectile moves per second.
  2. The amount of time before the projectile destroys itself.
  3. A bool to know which direction to move the shot.

Abstract Class vs. Interface

Enemy Base Class

  1. The speed the Player will move at horizontally on the screen.
  2. The force to add to the Player’s y-axis velocity when jumping.
  3. The Layer, the Player’s Raycast, will look to know if it is on the ground.
  4. A reference to the Rigidbody2D on the Player.
  5. A reference to the Sprite Renderer for the Player to control the facing.

Kyle W. Powers

Unity Developer, Software Engineer, Game Developer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store