using System.Collections; using System.Collections.Generic; using UnityEngine; using ObjectScripts; using CSVReader; using System.Globalization; namespace UIScripts { public class TimeChunk : MonoBehaviour { /// /// Inputfield for timeinterval /// [SerializeField] UnityEngine.UI.InputField ChunkStartInputField; /// /// Inputfield for timeinterval /// [SerializeField] UnityEngine.UI.InputField ChunkEndInputField; /// /// Manager to control /// [SerializeField] AbstractManager ManagerObject; /// /// On StartInputfield edited /// public void ChunkStartInputFieldEndEdit() { double startValue = double.Parse(ChunkStartInputField.text, NumberStyles.Float); this.ManagerObject.SetChunkStarttimestamp(startValue); } /// /// On EndInputField edited /// public void ChunkEndInputFieldEndEdit() { double endValue = double.Parse(ChunkEndInputField.text, NumberStyles.Float); this.ManagerObject.SetChunkEndtimestamp(endValue); } } }