public void Update(double deltaTime) { if (Rate < 1.0f) { nowTrans += deltaTime; Rate = MMWMath.Saturate((float)(nowTrans / trans)); } }
public void Update(double deltaTime) { if (deltaTime > 0.1) { return; } if (Type == TransitType.Lerp) { var rate = MMWMath.Saturate((float)deltaTime * Speed); LocalLocation = Vector2.Lerp(LocalLocation, Target, rate); } }