Dong_Minh_Doxygen: PlayerFire Class Reference

Dong Minh

Inheritance diagram for PlayerFire:
Inheritance graph
Collaboration diagram for PlayerFire:
Collaboration graph

Public Attributes

GameObject bulletPrefab
Transform bulletEmitter
float force = 100f

Private Member Functions

void Update ()
 Update once per frame More...
void FireCannon ()
 When the player presses the spacebar, fire the cannon. More...

Private Attributes

RaycastHit target

Detailed Description

Definition at line 4 of file PlayerFire.cs.

Member Function Documentation

◆ FireCannon()

void PlayerFire.FireCannon ( )

When the player presses the spacebar, fire the cannon.

Pseudo Code
Did I press the spacebar? If so, create the bullet, add some velocity, and fire!
Returns gameobject

Definition at line 31 of file PlayerFire.cs.

Here is the caller graph for this function:

◆ Update()

void PlayerFire.Update ( )

Update once per frame

Definition at line 16 of file PlayerFire.cs.

Here is the call graph for this function:

Member Data Documentation

◆ bulletEmitter

Transform PlayerFire.bulletEmitter

Definition at line 7 of file PlayerFire.cs.

◆ bulletPrefab

GameObject PlayerFire.bulletPrefab

Definition at line 6 of file PlayerFire.cs.

◆ force

float PlayerFire.force = 100f

Definition at line 8 of file PlayerFire.cs.

◆ target


Definition at line 9 of file PlayerFire.cs.

The documentation for this class was generated from the following file:
  • D:/Google Drive/Unity Projects/Tank Game/Assets/Scripts/PlayerFire.cs
Generated by   doxygen 1.8.13