public override void execute() { txUIObject window = (txUIObject)(mReceiver); WindowComponentScale componentScale = window.getFirstComponent <WindowComponentScale>(); if (componentScale != null) { componentScale.setActive(true); componentScale.setScalingCallback(mScalingCallback, mScalingUserData); componentScale.setScaleDoneCallback(mScaleDoneCallback, mScaleDoneUserData); componentScale.start(new Vector3(mStartScale.x, mStartScale.y, 1.0f), new Vector3(mTargetScale.x, mTargetScale.y, 1.0f), mScaleTime, mTimeOffset); } }
public override void execute() { txUIObject window = mReceiver as txUIObject; WindowComponentScale comTrembling = window.getFirstComponent <WindowComponentScale>(); if (null != comTrembling) { comTrembling.setActive(true); comTrembling.setTremblingCallback(mTremblingCallBack, mTremblingUserData); comTrembling.setTrembleDoneCallback(mTrembleDoneCallBack, mTrembleDoneUserData); comTrembling.setStartScale(mStartScale); comTrembling.setTargetScale(mTargetScale); comTrembling.play(mName, mLoop, mOnceLength, mOffset, mFullOnce, mAmplitude); } }