protected override void applyTrembling(float value) { txUIObject mObject = mComponentOwner as txUIObject; Vector3 curScale = mObject.getScale(); Vector2 newSacle = mStartScale + (mTargetScale - mStartScale) * value; mObject.setLocalScale(new Vector3(newSacle.x, newSacle.y, curScale.z)); }
protected override void applyScale(Vector3 scale, bool refreshNow, bool done) { txUIObject window = (mComponentOwner) as txUIObject; window.setLocalScale(new Vector3(scale.x, scale.y, 0.0f)); }