コード例 #1
0
        public void LerpShouldReturnARenderingDataObject()
        {
            var data = new RenderingData();
            var newRenderingDataObject = data.Lerp(data, 0.5f);

            Assert.IsNotNull(newRenderingDataObject);
        }
コード例 #2
0
 public override sealed T Get <T>()
 {
     if (EntitiesRunner.Current.State == UpdateDrawState.Draw &&
         typeof(T) == typeof(RenderingData) && lastRenderingData != null)
     {
         return((T)(object)lastRenderingData.Lerp(renderingData,
                                                  EntitiesRunner.CurrentDrawInterpolation));
     }
     if (typeof(T) == typeof(RenderingData))
     {
         return((T)(object)renderingData);
     }
     return(base.Get <T>());
 }
コード例 #3
0
 public void LerpShouldReturnARenderingDataObject()
 {
     var data = new RenderingData();
     var newRenderingDataObject = data.Lerp(data, 0.5f);
     Assert.IsNotNull(newRenderingDataObject);
 }