1using System.Collections;
2using System.Collections.Generic;
45 m_Keyboard = TouchScreenKeyboard.Open(
m_Text, TouchScreenKeyboardType.NumberPad,
false,
true,
false,
false );
55 m_Keyboard.active =
false;
62 m_InputString.text =
"Input = " +
m_Text;
66 string[] line =
m_Text.Split(
char.Parse(
" ") );
67 m_MeanPeriod.text =
"Mean Period = " + line[0];
68 m_SDPeriod.text =
"SD Period = " + line[1];
69 m_SampleSize.text =
"Sample Size = " + line[2];
73 string[] line =
m_Text.Split(
char.Parse(
" "));
74 m_PreferredWalkingSpeed.text =
"Preferred Speed = " + line[0];
75 m_SampleSize.text =
"Sample Size = " + line[1];
79 string[] line =
m_Text.Split(
char.Parse(
" "));
80 m_MeanPeriod.text =
"Mean Period = " + line[0];
81 m_SDPeriod.text =
"SD Period = " + line[1];
82 m_SampleSize.text =
"Sample Size = " + line[2];
98 m_Keyboard.active =
true;
102 m_Keyboard.active =
false;
Allow touch screen keyboard to enter noise related data.
TextMeshPro m_SDPeriod
Reference to SD Period label in noise data panel.
TouchScreenKeyboard m_Keyboard
Instance of the touch screen keyboard.
TextMeshPro m_InputString
Reference to the inputstring label in the data panel.
bool m_KeyboardToggle
Flag to toggle keyboard. When set to true, keyboard is not visible.
TextMeshPro m_PreferredWalkingSpeed
Reference to the user's preferred walking speed.
TextMeshPro m_SampleSize
Reference to sample size label in noise data panel.
TextMeshPro m_MeanPeriod
Reference to Mean Period label in noise data panel.
void Update()
Whenever use enters space separated noise values it will be set in the noise data panel.
string m_Text
This string will hold the keyboard entries.
TextMeshPro m_NoiseLbl
Reference to the noise label in the data panel.
void Start()
We instantiate keyboard instance.
void GetKeyboard()
Toggle keyboard and set it active or inactive.