C# Class UIStateToggleBtn3D, urban-survivors

Inheritance: ControlBase
Afficher le fichier Open project: exdev/urban-survivors Class Usage Examples

Méthodes publiques

Свойство Type Description
defaultState int
delay float
methodToInvoke string
scriptWithMethodToInvoke MonoBehaviour
soundToPlay UnityEngine.AudioSource
whenToInvoke POINTER_INFO.INPUT_EVENT

Protected Properties

Свойство Type Description
curStateIndex int

Méthodes publiques

Méthode Description
Copy ( IControl c ) : void
Copy ( IControl c, ControlCopyFlags flags ) : void
Create ( string name, Vector3 pos ) : UIStateToggleBtn3D,

Creates a GameObject and attaches this component type to it.

Create ( string name, Vector3 pos, Quaternion rotation ) : UIStateToggleBtn3D,

Creates a GameObject and attaches this component type to it.

DrawPostStateSelectGUI ( int selState ) : int
DrawPreStateSelectGUI ( int selState, bool inspector ) : int
DrawPreTransitionUI ( int selState, IGUIScriptSelector gui ) : void
GetTransitions ( int index ) : EZTransitionList
OnInput ( POINTER_INFO, ptr ) : void
SetToggleState ( int s ) : void

Sets the button's toggle state to the specified state.

SetToggleState ( string stateName ) : void

Sets the button's toggle state to the specified state. Does nothing if the specified state is not found.

Start ( ) : void
ToggleState ( ) : int

Toggles the button's state to the next in the sequence and returns the resulting state number.

Méthodes protégées

Méthode Description
Awake ( ) : void
DisableMe ( ) : void

Method Details

Awake() protected méthode

protected Awake ( ) : void
Résultat void

Copy() public méthode

public Copy ( IControl c ) : void
c IControl
Résultat void

Copy() public méthode

public Copy ( IControl c, ControlCopyFlags flags ) : void
c IControl
flags ControlCopyFlags
Résultat void

Create() static public méthode

Creates a GameObject and attaches this component type to it.
static public Create ( string name, Vector3 pos ) : UIStateToggleBtn3D,
name string Name to give to the new GameObject.
pos Vector3 Position, in world space, where the new object should be created.
Résultat UIStateToggleBtn3D,

Create() static public méthode

Creates a GameObject and attaches this component type to it.
static public Create ( string name, Vector3 pos, Quaternion rotation ) : UIStateToggleBtn3D,
name string Name to give to the new GameObject.
pos Vector3 Position, in world space, where the new object should be created.
rotation Quaternion Rotation of the object.
Résultat UIStateToggleBtn3D,

DisableMe() protected méthode

protected DisableMe ( ) : void
Résultat void

DrawPostStateSelectGUI() public méthode

public DrawPostStateSelectGUI ( int selState ) : int
selState int
Résultat int

DrawPreStateSelectGUI() public méthode

public DrawPreStateSelectGUI ( int selState, bool inspector ) : int
selState int
inspector bool
Résultat int

DrawPreTransitionUI() public méthode

public DrawPreTransitionUI ( int selState, IGUIScriptSelector gui ) : void
selState int
gui IGUIScriptSelector
Résultat void

GetTransitions() public méthode

public GetTransitions ( int index ) : EZTransitionList
index int
Résultat EZTransitionList

OnInput() public méthode

public OnInput ( POINTER_INFO, ptr ) : void
ptr POINTER_INFO,
Résultat void

SetToggleState() public méthode

Sets the button's toggle state to the specified state.
public SetToggleState ( int s ) : void
s int The zero-based state number/index.
Résultat void

SetToggleState() public méthode

Sets the button's toggle state to the specified state. Does nothing if the specified state is not found.
public SetToggleState ( string stateName ) : void
stateName string
Résultat void

Start() public méthode

public Start ( ) : void
Résultat void

ToggleState() public méthode

Toggles the button's state to the next in the sequence and returns the resulting state number.
public ToggleState ( ) : int
Résultat int

Property Details

curStateIndex protected_oe property

protected int curStateIndex
Résultat int

defaultState public_oe property

Zero-based index of the state that should be the default, initial state.
public int defaultState
Résultat int

delay public_oe property

Delay, in seconds, between the time the control is tapped and the time the method is executed.
public float delay
Résultat float

methodToInvoke public_oe property

A string containing the name of the method to be invoked.
public string methodToInvoke
Résultat string

scriptWithMethodToInvoke public_oe property

Reference to the script component with the method you wish to invoke when the button changes states.
public MonoBehaviour scriptWithMethodToInvoke
Résultat MonoBehaviour

soundToPlay public_oe property

Sound that will be played when the button is tapped.
public AudioSource,UnityEngine soundToPlay
Résultat UnityEngine.AudioSource

whenToInvoke public_oe property

Sets what event should have occurred to invoke the associated MonoBehaviour method. Defaults to TAP.
public POINTER_INFO.INPUT_EVENT whenToInvoke
Résultat POINTER_INFO.INPUT_EVENT