コード例 #1
0
        public override void Clone(BaseTransition other)
        {
            base.Clone(other);

            ColourTransition converted = (ColourTransition)other;

            startColour = converted.startColour;
            endColour   = converted.endColour;
        }
コード例 #2
0
        public override void Clone(BaseTransition other)
        {
            base.Clone(other);

            ScalingTransition converted = (ScalingTransition)other;

            startPoint = converted.startPoint;
            endPoint   = converted.endPoint;
        }
コード例 #3
0
        public override void Clone(BaseTransition other)
        {
            base.Clone(other);

            RotatingTransition converted = (RotatingTransition)other;

            reverseNegativeRotations = converted.reverseNegativeRotations;
            startPoint = converted.startPoint;
            endPoint   = converted.endPoint;
        }
コード例 #4
0
        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;
        }
コード例 #5
0
        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
        }
コード例 #6
0
        public override void Clone(BaseTransition other)
        {
            base.Clone(other);

            startFaded = ((AlphaTransition)other).startFaded;
        }