本文整理汇总了C#中UIInput类的典型用法代码示例。如果您正苦于以下问题:C# UIInput类的具体用法?C# UIInput怎么用?C# UIInput使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
UIInput类属于命名空间,在下文中一共展示了UIInput类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: MarketBuyView
public MarketBuyView(Transform transform)
{
panel = transform.gameObject;
name = transform.FindChild("name").GetComponent<UILabel>();
total = transform.FindChild("total").GetComponent<UILabel>();
num = transform.FindChild("num").GetComponent<UIInput>();
minus = transform.FindChild("minus").GetComponent<MogoButton>();
minusminus = transform.FindChild("minusminus").GetComponent<MogoButton>();
plus = transform.FindChild("plus").GetComponent<MogoButton>();
plusplus = transform.FindChild("plusplus").GetComponent<MogoButton>();
close = transform.FindChild("close").GetComponent<MogoButton>();
commit = transform.FindChild("commit").GetComponent<MogoButton>();
UILabel c = transform.FindChild("close/Label").GetComponent<UILabel>();
UILabel cm = transform.FindChild("commit/Label").GetComponent<UILabel>();
c.text = Mogo.GameData.LanguageData.GetContent(716); // "取消";
cm.text = Mogo.GameData.LanguageData.GetContent(717); // "确定";
minus.clickHandler = Minus;
minusminus.clickHandler = MinusMinus;
plus.clickHandler = Plus;
plusplus.clickHandler = PlusPlus;
close.clickHandler = Close;
commit.clickHandler = Commit;
num.validator = Validator;
num.onSubmit = OnInputSubmit;
}
示例2: Awake
public override void Awake()
{
base.Awake();
_UiInputReceiver = gameObject.GetComponent<UIInput>();
_UiLabelReceiver = gameObject.GetComponent<UILabel>();
}
示例3: Start
// Use this for initialization
void Start()
{
user = GameObject.Find("UI Root/account").GetComponent<UIInput>();
passwd = GameObject.Find("UI Root/passwd").GetComponent<UIInput>();
tip = GameObject.Find("UI Root/lanuch/Tip_Label").GetComponent<UILabel>();
}
示例4: Start
void Start()
{
if (this.GetComponent<UIInput>())
{
uiInput = this.GetComponent<UIInput>();
}
}
示例5: Awake
public override void Awake()
{
base.Awake();
_nvc.Awake(gameObject);
_input = GetComponent<UIInput> ();
_uiInputField = GetComponent<UnityEngine.UI.InputField>();
}
示例6: Awake
void Awake(){
_instance = this;
headSprite = transform.Find ("HeadSprite").GetComponent<UISprite> ();
levelLabel = transform.Find ("LevelLabel").GetComponent<UILabel> ();
nameLabel = transform.Find ("NameLabel").GetComponent<UILabel> ();
diamondLabel = transform.Find ("DiamondLabel/DiamondNumLabel").GetComponent<UILabel> ();
coinLabel = transform.Find ("CoinLabel/CoinNumLabel").GetComponent<UILabel> ();
tween = this.GetComponent<TweenPosition> ();
closeButton = transform.Find ("CancelButton").GetComponent<UIButton> ();
changeNameButton = transform.Find ("ChangeNameButton").GetComponent<UIButton> ();
changeNameGo = transform.Find ("ChangeNameBg").gameObject;
nameInput = transform.Find ("ChangeNameBg/NameInput").GetComponent<UIInput> ();
sureButton = transform.Find ("ChangeNameBg/SureButton").GetComponent<UIButton> ();
cancelButton = transform.Find ("ChangeNameBg/CancelButton").GetComponent<UIButton> ();
changeNameGo.SetActive (false);
EventDelegate ed = new EventDelegate(this,"OnButtonCloseClick");
closeButton.onClick.Add (ed);
EventDelegate ed2 = new EventDelegate (this, "OnButtonChangeNameClick");
changeNameButton.onClick.Add (ed2);
EventDelegate ed3 = new EventDelegate (this, "OnButtonSureClick");
sureButton.onClick.Add (ed3);
EventDelegate ed4 = new EventDelegate (this, "OnButtonCancelClick");
cancelButton.onClick.Add (ed4);
PlayerInfo._instance.OnPlayerInfoChanged += this.OnPlayerInfoChanged;
}
示例7: FindItem
public void FindItem() {
labelText = transform.Find("name").GetComponent<UILabel>();
select = transform.Find("xuanzhong").gameObject;
addStatue = transform.Find("addstatue").gameObject;
sendGroup = transform.Find("send_group").gameObject;
inputSend = sendGroup.GetComponent<UIInput>();
}
示例8: InitGame
void InitGame()
{
mName = skinTransform.Find("name").GetComponent<UILabel>();
mInputNum = skinTransform.Find("inputNum").GetComponent<UIInput>();
mInputNum.value = mNowSelectNums.ToString();
mInputNum.onChange.Add(new EventDelegate(ChangeInput));
}
示例9: OnChange
public void OnChange (UIInput input) {
string text = "";
for (int i=0; i<=input.value.Length; i++) {
text += " ";
}
text += postfix;
postfixLabel.text = text;
}
示例10: Awake
// Use this for initialization
void Awake() {
_instance = this;
tween = this.GetComponent<TweenPosition> ();
NumDialog = this.transform.Find ("NumDilag").gameObject;
inputxu=transform.Find("NumDilag/NumInput").GetComponent<UIInput>();
NumDialog.SetActive (false);
}
示例11: OnInit
public override void OnInit()
{
base.OnInit();
m_InputName = FindChildComponent<UIInput>("Input_NickName");
AddChildElementClickEvent(OnClickCreate, "UIButton_Create");
}
示例12: Start
void Start()
{
// 获得各种控件
lbAccount = transform.FindChild("lbAccount").GetComponent<UIInput>();
lbPassword = transform.FindChild("lbPassword").GetComponent<UIInput>();
btnLogin = transform.FindChild("btnLogin").GetComponent<UIButton>();
EventDelegate.Add(btnLogin.onClick, OnClickLogin);
}
示例13: OnEngineSlotXInput
void OnEngineSlotXInput(UIInput sender)
{
float result = 0;
if (CheckFloatInput (sender, ref result)) {
currentShip.engineSlots [int.Parse (poplst_engineSlots.selection)] = new Vector2 (
result,
currentShip.engineSlots [int.Parse (poplst_engineSlots.selection)].y);
}
}
示例14: Awake
void Awake ()
{
Object.DontDestroyOnLoad (GameObject.Find ("PC Packet"));
PC = GameObject.Find ("PC Packet").GetComponent<Character> ();
UI = GetComponent<UIController> ();
ClassSelectList = GameObject.Find ("Class Select: List")
.GetComponent<UIPopupList> ();
NameInput = GameObject.Find ("Name: Input")
.GetComponent<UIInput> ();
}
示例15: Start
void Start () {
if (!GameManager.Instance.GameLogin) {
SceneManager.LoadScene (0, LoadSceneMode.Single);
return;
}
GameData.SetBtn (this.transform, "BtnOk", "Press", this);
m_ipNickName = this.transform.FindChild ("Input").GetComponent<UIInput> ();
UILabel tGuide = this.transform.FindChild ("tGuide").GetComponent<UILabel> ();
tGuide.text = "닉네임은 2~10글자 까지 영문과 숫자만 가능합니다.";
}