예제 #1
0
        void Update()
        {
            if (Mode == TransformModes.None || Axes == Axes.None)
            {
                return;
            }

            if (!Culling || Renderer.isVisible)
            {
                if ((Mode & TransformModes.Position) != 0)
                {
                    CachedTransform.OscillateLocalPosition(Frequency, Amplitude, Center, TimeManager.GetTime(TimeChannel), Axes);
                }

                if ((Mode & TransformModes.Rotation) != 0)
                {
                    CachedTransform.OscillateLocalEulerAngles(Frequency, Amplitude, Center, TimeManager.GetTime(TimeChannel), Axes);
                }

                if ((Mode & TransformModes.Scale) != 0)
                {
                    CachedTransform.OscillateLocalScale(Frequency, Amplitude, Center, TimeManager.GetTime(TimeChannel), Axes);
                }
            }
        }