/// <summary> /// 初始化 /// </summary> private void Awake() { SpeedControlDataEntity entity = new SpeedControlDataEntity(); this.DataEntity = entity; Watch(this); }
/// <summary> /// 速度控制(消息触发器) /// </summary> /// <param name="value"></param> public void OnSliderValueChanged(float value) { SpeedControlDataEntity entity = (SpeedControlDataEntity)this.DataEntity; entity.SpeedZ = value; }