using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using DG.Tweening; namespace Assets.Scripts.Scenes.VideoRide { public class OnlineVideoPlayer : AbstractVideoPlayer { public double diff { get; set; } //计算 protected override void ComputePlayer() { diff = 10; } //设置当前玩家属性 public void SetPlayer(double power,double distance) { transform.DOLocalMoveZ(25, 1); this.power = power; this.distance = distance; this.speed = 20; this.totalDistance += distance; } } }