/// <summary> /// Unity Method /// </summary> private void Awake() { VirtualTimeDataEntity entity = new VirtualTimeDataEntity(); this.DataEntity = entity; Watch(this); }
/// <summary> /// Unity Method /// </summary> private void Start() { _dataEntity = (VirtualTimeDataEntity)GameObject.FindObjectOfType <VirtualTimeDataModel>().DataEntity; datetime = DateTime.Now; DateText = GetComponentInChildren <Text>(); DateText.text = datetime.ToString("yyyy-MM-dd HH:mm:ss"); }
/// <summary> /// Unity Method /// </summary> private void Start() { entity = (VirtualTimeDataEntity)GameObject.FindObjectOfType <VirtualTimeDataModel>().DataEntity; DayTimeBtn.onClick.AddListener(OnClick); TimeSpeedBtn.onClick.AddListener(OnValueChange); }