public override void Clone(BaseTransition other) { base.Clone(other); ColourTransition converted = (ColourTransition)other; startColour = converted.startColour; endColour = converted.endColour; }
public override void Clone(BaseTransition other) { base.Clone(other); ScalingTransition converted = (ScalingTransition)other; startPoint = converted.startPoint; endPoint = converted.endPoint; }
public override void Clone(BaseTransition other) { base.Clone(other); RotatingTransition converted = (RotatingTransition)other; reverseNegativeRotations = converted.reverseNegativeRotations; startPoint = converted.startPoint; endPoint = converted.endPoint; }
public override void Clone(BaseTransition other) { base.Clone(other); MovingTransition converted = (MovingTransition)other; type = converted.type; differenceStartPoint = converted.differenceStartPoint; startPoint = converted.startPoint; endPoint = converted.endPoint; }
public virtual void Clone(BaseTransition other) { #if (UNITY_EDITOR) label = other.label; mainDropDown = new AnimBool(); transitionInDropDown = new AnimBool(); fadeOutDropDown = new AnimBool(); messagingDropDown = new AnimBool(); loopingDropDown = new AnimBool(); dataDropDown = new AnimBool();//these are for the editor. They are stored here to help act as saving your preferences whe viewing each object stayForever = other.stayForever; #endif parent = other.parent; state = other.state; currentTime = other.currentTime; delay = other.delay; transitionInTime = other.transitionInTime; fadeOutTime = other.fadeOutTime; displayTime = other.displayTime; fadeOutDelay = other.fadeOutDelay; transitionInCurve = new AnimationCurve(other.transitionInCurve.keys); fadeOutCurve = new AnimationCurve(other.fadeOutCurve.keys); looping = other.looping; triggerInstantly = other.triggerInstantly; #region Messaging messagingEnabled = other.messagingEnabled;//used to temporary enable and disable messages events = other.events; whenToSends = (TransitionState[])other.whenToSends.Clone(); #endregion }
public override void Clone(BaseTransition other) { base.Clone(other); startFaded = ((AlphaTransition)other).startFaded; }