1
Fork 0
mirror of https://github.com/Steffo99/better-tee.git synced 2024-12-04 20:14:18 +00:00
better-tee/Assets/Refactored/Form/FormItemTextField.cs
2019-09-23 18:44:56 +02:00

23 lines
548 B
C#

using UnityEngine;
using UnityEngine.UI;
namespace BetterTee.Form {
[RequireComponent(typeof(InputField))]
public class FormItemTextField : FormItem {
protected InputField inputFieldComponent;
protected void Start() {
inputFieldComponent = GetComponent<inputFieldComponent>();
}
public override dynamic Value {
get {
return inputFieldComponent.text;
}
set {
inputFieldComponent.text = value;
}
}
}
}