public override void ApplyTo(SkinComponent skinComponent) { var rotate = skinComponent.GetComponent <AutoRotate>(); rotate.xAngle = xSpeed; rotate.yAngle = ySpeed; rotate.zAngle = zSpeed; }
public override bool CanApplyTo(SkinComponent skinComponent) { return(skinComponent.GetComponent <AutoRotate>() != null); }