C# Класс UIRadioBtn3D, urban-survivors

Наследование: ControlBase, IRadioButton
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
defaultValue bool
delay float
methodToInvoke string
radioGroup int
scriptWithMethodToInvoke MonoBehaviour
soundToPlay UnityEngine.AudioSource
useParentForGrouping bool
whenToInvoke POINTER_INFO.INPUT_EVENT

Защищенные свойства (Protected)

Свойство Тип Описание
btnValue bool
group RadioBtnGroup,
states string[]

Открытые методы

Метод Описание
Copy ( IControl c ) : void
Copy ( IControl c, ControlCopyFlags flags ) : void
Create ( string name, Vector3 pos ) : UIRadioBtn3D,

Creates a GameObject and attaches this component type to it.

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

Creates a GameObject and attaches this component type to it.

DrawPreTransitionUI ( int selState, IGUIScriptSelector gui ) : void
GetTransitions ( int index ) : EZTransitionList
OnDestroy ( ) : void
OnInput ( POINTER_INFO, ptr ) : void
SetGroup ( GameObject parent ) : void

Makes the radio button a part of the specified group and it will thenceforth be mutually exclusive to all other radio buttons in the same group.

SetGroup ( int groupID ) : void

Makes the radio button a part of the specified group and it will thenceforth be mutually exclusive to all other radio buttons in the same group.

Start ( ) : void

Защищенные методы

Метод Описание
Awake ( ) : void
DisableMe ( ) : void
PopOtherButtonsInGroup ( ) : void
SetButtonState ( ) : void
StartTransition ( int newState, int prevState ) : void

Описание методов

Awake() защищенный Метод

protected Awake ( ) : void
Результат void

Copy() публичный Метод

public Copy ( IControl c ) : void
c IControl
Результат void

Copy() публичный Метод

public Copy ( IControl c, ControlCopyFlags flags ) : void
c IControl
flags ControlCopyFlags
Результат void

Create() статический публичный Метод

Creates a GameObject and attaches this component type to it.
static public Create ( string name, Vector3 pos ) : UIRadioBtn3D,
name string Name to give to the new GameObject.
pos Vector3 Position, in world space, where the new object should be created.
Результат UIRadioBtn3D,

Create() статический публичный Метод

Creates a GameObject and attaches this component type to it.
static public Create ( string name, Vector3 pos, Quaternion rotation ) : UIRadioBtn3D,
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.
Результат UIRadioBtn3D,

DisableMe() защищенный Метод

protected DisableMe ( ) : void
Результат void

DrawPreTransitionUI() публичный Метод

public DrawPreTransitionUI ( int selState, IGUIScriptSelector gui ) : void
selState int
gui IGUIScriptSelector
Результат void

GetTransitions() публичный Метод

public GetTransitions ( int index ) : EZTransitionList
index int
Результат EZTransitionList

OnDestroy() публичный Метод

public OnDestroy ( ) : void
Результат void

OnInput() публичный Метод

public OnInput ( POINTER_INFO, ptr ) : void
ptr POINTER_INFO,
Результат void

PopOtherButtonsInGroup() защищенный Метод

protected PopOtherButtonsInGroup ( ) : void
Результат void

SetButtonState() защищенный Метод

protected SetButtonState ( ) : void
Результат void

SetGroup() публичный Метод

Makes the radio button a part of the specified group and it will thenceforth be mutually exclusive to all other radio buttons in the same group.
public SetGroup ( GameObject parent ) : void
parent GameObject
Результат void

SetGroup() публичный Метод

Makes the radio button a part of the specified group and it will thenceforth be mutually exclusive to all other radio buttons in the same group.
public SetGroup ( int groupID ) : void
groupID int
Результат void

Start() публичный Метод

public Start ( ) : void
Результат void

StartTransition() защищенный Метод

protected StartTransition ( int newState, int prevState ) : void
newState int
prevState int
Результат void

Описание свойств

btnValue защищенное свойство

protected bool btnValue
Результат bool

defaultValue публичное свойство

The default value of the button
public bool defaultValue
Результат bool

delay публичное свойство

Delay, in seconds, between the time the control is tapped and the time the method is executed.
public float delay
Результат float

group защищенное свойство

protected RadioBtnGroup, group
Результат RadioBtnGroup,

methodToInvoke публичное свойство

A string containing the name of the method to be invoked.
public string methodToInvoke
Результат string

radioGroup публичное свойство

The numbered group to which this radio button belongs. Buttons that share a group will be mutually exclusive to one another. This value is only available if RADIOBTN_USE_PARENT is not defined. Otherwise, by default, radio buttons group themselves according to a common parent GameObject.
public int radioGroup
Результат int

scriptWithMethodToInvoke публичное свойство

Reference to the script component with the method you wish to invoke when the button changes states.
public MonoBehaviour scriptWithMethodToInvoke
Результат MonoBehaviour

soundToPlay публичное свойство

Sound that will be played when the button is tapped.
public AudioSource,UnityEngine soundToPlay
Результат UnityEngine.AudioSource

states защищенное свойство

protected string[] states
Результат string[]

useParentForGrouping публичное свойство

When true, the radio button will group itself with other radio buttons based on whether they share the same parent GameObject.
public bool useParentForGrouping
Результат bool

whenToInvoke публичное свойство

Sets what event should have occurred to invoke the associated MonoBehaviour method. Defaults to TAP.
public POINTER_INFO.INPUT_EVENT whenToInvoke
Результат POINTER_INFO.INPUT_EVENT