예제 #1
0
 private void OnDisable()
 {
     if (_animating)
     {
         StencilFramerate.Release();
     }
 }
예제 #2
0
 private void OnEnable()
 {
     if (_animating)
     {
         StencilFramerate.Acquire();
     }
 }
예제 #3
0
        private void Update()
        {
            var animating = Animating();

            if (_animating == animating)
            {
                return;
            }
            _animating = animating;
            if (animating)
            {
                StencilFramerate.Acquire();
            }
            else
            {
                StencilFramerate.Release();
            }
        }