BomberUnits
...a Unity learning project
PlayerCustDialog Class Reference
+ Inheritance diagram for PlayerCustDialog:
+ Collaboration diagram for PlayerCustDialog:

Public Member Functions

void Awake ()
 
void Start ()
 
void Init (LocalPlayer p)
 Is intended to be given a copy of an actual player.
 
void OnPressOkBtn ()
 

Public Attributes

GameObject colorVLayout
 Vertical Layout to hold color fields.
 
Image playerFigureImage
 
InputField playerNameInputField
 
Dropdown inputSchemeDropdown
 
ScrollRect figureSelScrollView
 

Private Member Functions

void PopulateDialog ()
 
void PopulateColors (Color curOwnColor)
 Creates color selection fields from available colors list.
 
void PopulateInputSchemes ()
 Creates selection list of input schemes from available input schemes.
 
void PopulateFigures ()
 Creates the list of selectable PlayerFigures, represented by their associated sprite images.
 
void OnSelection (ColorScheme c)
 
void SetSelection (InputScheme inputScheme)
 Searches the given input scheme in the dropdown and selects it.
 
void OnSelection (PlayerFigurePrefab figurePrefab)
 

Private Attributes

LocalPlayer targetPlayer = null
 Has to be set when the dialog is created via Init().
 
ColorScheme selectedColor
 
PlayerFigurePrefab selectedFigure
 

Detailed Description

Definition at line 11 of file PlayerCustDialog.cs.


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