// Set the block up to slide with the state it will need once the slide finishes public void SetupSlide(BlockSlideDirection direction, Block targetBlock) { SlideDirection = direction; slideTargetState = targetBlock.State; slideTargetType = targetBlock.Type; slideTargetRendererScale = targetBlock.Renderer.Scale; slideTargetRendererAnimationState = targetBlock.Renderer.AnimationState; }
// Set the block up to slide with the state it will need once the slide finishes public void SetupSlide(BlockSlideDirection direction, Block targetBlock) { SlideDirection = direction; slideTargetState = targetBlock.State; slideTargetType = targetBlock.Type; slideTargetRendererScale = targetBlock.Renderer.Scale; slideTargetRendererAnimationState = targetBlock.Renderer.AnimationState; }