ctac.TilePieceIndicatorialView.Update C# (CSharp) Method

Update() private method

private Update ( ) : void
return void
        void Update()
        {
            if(!active) return;

            //rotate and bounce scale
            transform.Rotate(Vector3.forward, 2f);
            var scaleFactor = Mathf.Sin(Time.time / 0.33f) * 0.5f + 0.5f;
            transform.localScale = Vector3.Lerp(minSize, maxSize, scaleFactor);
        }