use of su.levenetc.android.textsurface.interfaces.ICameraAnimation in project TextSurface by elevenetc.
the class TextSurface method configAnimations.
private void configAnimations(ISurfaceAnimation animation) {
if (animation instanceof ICameraAnimation) {
((ICameraAnimation) animation).setCamera(camera);
} else if (animation instanceof ISet) {
LinkedList<ISurfaceAnimation> animations = ((ISet) animation).getAnimations();
for (ISurfaceAnimation a : animations) configAnimations(a);
} else if (animation instanceof ITextSurfaceAnimation) {
ITextSurfaceAnimation textAnimation = (ITextSurfaceAnimation) animation;
Text text = textAnimation.getText();
if (text != null && textsTree.add(text))
textAnimation.setInitValues(text);
}
}
Aggregations