Exemple #1
0
        void Start()
        {
            _baseDistance = _distanceNode.localPosition.z;
            _baseOffset   = _offsetNode.localPosition.z;
            _baseMotion   = _motionNode.rotationAmount;

            _distance = new CdsTween(0, 4);

            _shakePosition            = _shakeNode.positionAmount;
            _shakeRotation            = _shakeNode.rotationAmount;
            _shakeNode.positionAmount = 0;
            _shakeNode.rotationAmount = 0;
        }