Exemplo n.º 1
0
            void ScaleOnCurve()
            {
                float       curveDur = this.scalingCurve.keys[this.scalingCurve.length - 1].time;
                IEnumerator scale    = StratusRoutines.Scale(transform, this.scalingCurve, curveDur);

                this.transform.StartCoroutine(scale, TransformationType.Scale);
            }
Exemplo n.º 2
0
            void ScaleSequence()
            {
                var scaling = StratusRoutines.Scale(transform, new float[] { 0.5f, 4f, 1f }, duration, repeat);

                this.StartCoroutine(scaling, "Scale");
            }
Exemplo n.º 3
0
            void Scale()
            {
                IEnumerator scale = StratusRoutines.Scale(transform, this.scalar, this.duration);

                this.transform.StartCoroutine(scale, TransformationType.Scale);
            }