1
Fork 0
mirror of https://github.com/Steffo99/better-tee.git synced 2024-11-22 15:24:18 +00:00
better-tee/Assets/Refactored/Form/FormItemTextField.cs

24 lines
548 B
C#
Raw Normal View History

2019-09-23 16:44:56 +00:00
using UnityEngine;
2019-09-22 22:23:35 +00:00
using UnityEngine.UI;
namespace BetterTee.Form {
2019-09-23 16:44:56 +00:00
[RequireComponent(typeof(InputField))]
2019-09-22 22:23:35 +00:00
public class FormItemTextField : FormItem {
protected InputField inputFieldComponent;
2019-09-23 16:44:56 +00:00
protected void Start() {
inputFieldComponent = GetComponent<inputFieldComponent>();
}
2019-09-22 22:23:35 +00:00
public override dynamic Value {
get {
return inputFieldComponent.text;
}
set {
inputFieldComponent.text = value;
}
}
}
}