BULLET 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
LINE 1 --> Private method that runs once the attached gameObject is enabled (Set Active)
LINE 2 --> INVOKES the Hide() method after 1 second
Invoke keyword is used to run a method after so many seconds has passed
LINE 3 --> Private method responsible for setting the attached gameObject to inactive