コード例 #1
0
        /// <summary>
        /// Unity Method
        /// </summary>
        private void Awake()
        {
            VirtualTimeDataEntity entity = new VirtualTimeDataEntity();

            this.DataEntity = entity;
            Watch(this);
        }
コード例 #2
0
 /// <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");
 }
コード例 #3
0
 /// <summary>
 /// Unity Method
 /// </summary>
 private void Start()
 {
     entity = (VirtualTimeDataEntity)GameObject.FindObjectOfType <VirtualTimeDataModel>().DataEntity;
     DayTimeBtn.onClick.AddListener(OnClick);
     TimeSpeedBtn.onClick.AddListener(OnValueChange);
 }