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

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

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

Свойство Тип Описание
delay float
methodToInvoke string
repeat bool
scriptWithMethodToInvoke MonoBehaviour
soundOnClick UnityEngine.AudioSource
soundOnOver UnityEngine.AudioSource
whenToInvoke POINTER_INFO.INPUT_EVENT

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

Свойство Тип Описание
m_ctrlState CONTROL_STATE
states string[]

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

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

Creates a GameObject and attaches this component type to it.

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

Creates a GameObject and attaches this component type to it.

DrawPreTransitionUI ( int selState, IGUIScriptSelector gui ) : void
GetTransitions ( int index ) : EZTransitionList
OnInput ( POINTER_INFO, ptr ) : void
Start ( ) : void

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

Метод Описание
SetControlState ( CONTROL_STATE s ) : void
StartTransition ( int newState, int prevState ) : 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 ) : UIButton3D,
name string Name to give to the new GameObject.
pos Vector3 Position, in world space, where the new object should be created.
Результат UIButton3D,

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

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

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

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

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

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

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

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

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

protected SetControlState ( CONTROL_STATE s ) : void
s CONTROL_STATE
Результат void

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

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

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

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

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

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

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

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

protected CONTROL_STATE m_ctrlState
Результат CONTROL_STATE

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

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

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

When repeat is true, the button will call the various delegates and invokes as long as the button is held down. NOTE: If repeat is true, it overrides any setting of "whenToInvoke"/"When To Invoke". One exception to this is that "soundToPlay" is still played based upon "whenToInvoke".
public bool repeat
Результат bool

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

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

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

Sound that will be played when the button is activated (pressed)
public AudioSource,UnityEngine soundOnClick
Результат UnityEngine.AudioSource

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

Sound that will be played when the button is is in an "over" state (mouse over)
public AudioSource,UnityEngine soundOnOver
Результат UnityEngine.AudioSource

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

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

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