PLAYER CLASS
Last updated
Last updated
The goal of the Player Class is to translate the player's input to actions within the project.
The Player Class should have methods that can handle the following features:
When the PLAYER presses the SPACE KEY --> Activate the RequestBullet() method from the Pool Manager Class --> Tell the newly activated bullet where to be placed
_bulletPrefab --> variable to store bullet prefab
LINE 3 --> Checks each frame if the player presses the space key
LINE 5 --> activates the RequestBullet() within the Pool Manager Class and places the returned bullet within a variable called bullet
LINE 6 --> sets the position of the newly activated bullet at the player's position