DoopelPonger
Public Member Functions | Public Attributes | List of all members
CoopCannons.CannonFireInfo Struct Reference

Data class used to provide information about a cannon. More...

Public Member Functions

 CannonFireInfo (Transform firePosition, BoxCollider2D collider)
 

Public Attributes

readonly Transform firePosition
 
readonly BoxCollider2D collider
 

Detailed Description

Data class used to provide information about a cannon.

Constructor & Destructor Documentation

◆ CannonFireInfo()

CoopCannons.CannonFireInfo.CannonFireInfo ( Transform  firePosition,
BoxCollider2D  collider 
)

Member Data Documentation

◆ collider

readonly BoxCollider2D CoopCannons.CannonFireInfo.collider

The collider of the cannon. The collider is given in case that the spawned bullet is too large and makes contact with the cannon when spawned and causes the bullet to instantly disapear.

◆ firePosition

readonly Transform CoopCannons.CannonFireInfo.firePosition

The position a bullet should be fired from.


The documentation for this struct was generated from the following file: