C# Class TurretSelectionMenu, Corsair

Inheritance: MonoBehaviour
Mostra file Open project: Final-Parsec/Corsair Class Usage Examples

Public Properties

Property Type Description
buttonPadding Vector2
layoutdimensions Vector2
turretSelectionPrefab GameObject
turretSprites Sprite>.IDictionary

Public Methods

Method Description
Start ( ) : void

Runs when the TurretSelectionMenu is created. Populates the panel with turret buttons.

Method Details

Start() public method

Runs when the TurretSelectionMenu is created. Populates the panel with turret buttons.
public Start ( ) : void
return void

Property Details

buttonPadding public_oe property

The space between Buttons. The Button size is calculated using this number.
Put a zero (0) value to ignore this axis and use a calculated padding value. Must have a value.
public Vector2 buttonPadding
return Vector2

layoutdimensions public_oe property

The layout of the Buttons. ex: 2x4, 1x8
public Vector2 layoutdimensions
return Vector2

turretSelectionPrefab public_oe property

The Button prefab to use in the panel.
Must have a RectTransform attatched.
public GameObject turretSelectionPrefab
return GameObject

turretSprites public_oe property

public IDictionary turretSprites
return Sprite>.IDictionary