BomberUnits
...a Unity learning project
StdDialog Class Reference

A standard dialog handler, for use with a standard prefab. More...

+ Inheritance diagram for StdDialog:
+ Collaboration diagram for StdDialog:

Public Member Functions

void Awake ()
 
void Setup (string title, string text="", string fwdBtnTxt="", string backBtnTxt="")
 
string GetTitle ()
 
string GetInfoText ()
 
string GetBackBtnText ()
 
string GetFwdBtnText ()
 

Public Attributes

Button backBtn = null
 Can be subscribed to from a dialog user.
 
Button fwdBtn = null
 Can be subscribed to form a dialog user.
 
Text titleTxt = null
 
Text infoTxt = null
 

Private Member Functions

void ActivateIfHasContent (Text txtObj, string content)
 
void ActivateIfHasContent (Button btnObj, string content)
 
string GetTextIfActive (Text txtObj)
 
string GetTextIfActive (Button btnObj)
 

Detailed Description

A standard dialog handler, for use with a standard prefab.

Activates content based on values set during Setup().

Definition at line 8 of file StdDialog.cs.


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