예제 #1
0
    public override void execute()
    {
        ComponentOwner     obj       = mReceiver as ComponentOwner;
        WindowComponentLum component = obj.getComponent(out component);

        component.setTremblingCallback(mTremblingCallBack);
        component.setTrembleDoneCallback(mTrembleDoneCallBack);
        component.setActive(true);
        component.setStartLum(mStartLum);
        component.setTargetLum(mTargetLum);
        component.play(mName, mLoop, mOnceLength, mOffset, mFullOnce, mAmplitude);
    }
예제 #2
0
    public override void execute()
    {
        txUIObject         window       = mReceiver as txUIObject;
        WindowComponentLum comTrembling = window.getFirstComponent <WindowComponentLum>();

        if (comTrembling != null)
        {
            comTrembling.setTremblingCallback(mTremblingCallBack, mTremblingUserData);
            comTrembling.setTrembleDoneCallback(mTrembleDoneCallBack, mTrembleDoneUserData);
            comTrembling.setActive(true);
            comTrembling.setStartLum(mStartLum);
            comTrembling.setTargetLum(mTargetLum);
            comTrembling.play(mName, mLoop, mOnceLength, mOffset, mFullOnce, mAmplitude);
        }
    }
예제 #3
0
    public override void execute()
    {
        txUIObject         obj       = mReceiver as txUIObject;
        WindowComponentLum component = obj.getComponent(out component);

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