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