public void Init(string title, ActingType tType, float tweenTime, float delayTweenTime, bool isEnable, bool isAutoPlay, bool isLoop, LeanTweenType tweenType, LoopType loopType, int tweenCount, Vector4 toVec, Vector4 fromVec, Vector4 hideVec, System.Action <float> tweenTimeChanged, System.Action <float> delayTimeChanged, System.Action <bool> IsEnableChanged, System.Action <bool> autoPlayChanged, System.Action <bool> loopChanged, System.Action <LeanTweenType> tweenTypeChanged, System.Action <LoopType> loopTypeChanged, System.Action <int> countChanged, System.Action <Vector4> toChanged, System.Action <Vector4> fromChanged, System.Action <Vector4> hideChanged) { Title = title; TweenTime = tweenTime; TweenDelayTime = delayTweenTime; Enable = isEnable; AutoPlay = isAutoPlay; Loop = isLoop; CTweenType = tweenType; LoopType = loopType; TweenCount = tweenCount; To = toVec; From = fromVec; Hide = hideVec; m_tweenTimeChanged = tweenTimeChanged; m_tweenDelayTimeChanged = delayTimeChanged; m_autoPlayChanged = autoPlayChanged; m_loopChanged = loopChanged; m_tweenTypeChanged = tweenTypeChanged; m_loopTypeChanged = loopTypeChanged; m_tweenCountChanged = countChanged; m_toChanged = toChanged; m_fromChanged = fromChanged; m_hideChanged = hideChanged; m_enableChanged = IsEnableChanged; m_type = tType; }
public void Initialize(ActingType type, WidgetTween wTween, bool wTweens, float tweenTime, string tooltipText, System.Action <bool> positionChanged, System.Action <float> tweenTimeChanged) { PositionTween = wTweens; _toolTiptext = tooltipText; _interpolationChanged = positionChanged; m_tweenTimeChanged = tweenTimeChanged; if (!_submitButtonVisibile) { _submitButtonVisibile = true; _submitButtonTitle = PositionTween ? "Disable" : "Enable"; } m_widgetTween = wTween; TweenTime = tweenTime; m_type = type; }