mirror of
https://github.com/Steffo99/better-tee.git
synced 2024-11-22 07:14:19 +00:00
23 lines
548 B
C#
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;
|
|
}
|
|
}
|
|
}
|
|
}
|