public override void execute()
    {
        ComponentOwner      obj       = mReceiver as ComponentOwner;
        WindowComponentFill component = obj.getComponent(out component);

        component.setActive(true);
        component.setTremblingCallback(mTremblingCallBack);
        component.setTrembleDoneCallback(mTrembleDoneCallBack);
        component.setStartValue(mStartValue);
        component.setTargetValue(mTargetValue);
        component.play(mTremblingName, mLoop, mOnceLength, mOffset, mFullOnce, mAmplitude);
    }
Exemple #2
0
    public override void execute()
    {
        txUIObject          window        = mReceiver as txUIObject;
        WindowComponentFill componentFill = window.getFirstComponent <WindowComponentFill>();

        if (componentFill != null)
        {
            componentFill.setActive(true);
            componentFill.setTremblingCallback(mTremblingCallBack, null);
            componentFill.setTrembleDoneCallback(mTrembleDoneCallBack, null);
            componentFill.setStartValue(mStartValue);
            componentFill.setTargetValue(mTargetValue);
            componentFill.play(mTremblingName, mLoop, mOnceLength, mOffset, mFullOnce, mAmplitude);
        }
    }
Exemple #3
0
    public override void execute()
    {
        txUIObject          obj       = mReceiver as txUIObject;
        WindowComponentFill component = obj.getComponent(out component);

        component.setActive(true);
        component.setTremblingCallback(mTremblingCallBack);
        component.setTrembleDoneCallback(mTrembleDoneCallBack);
        component.setStartValue(mStartValue);
        component.setTargetValue(mTargetValue);
        component.play(mTremblingName, mLoop, mOnceLength, mOffset, mFullOnce, mAmplitude);
        if (component.getState() == PLAY_STATE.PS_PLAY)
        {
            // 需要启用组件更新时,则开启组件拥有者的更新,后续也不会再关闭
            obj.setEnable(true);
        }
    }