示例#1
0
        public void Enable()
        {
            if (IsActive)
            {
                return;
            }

            IsActive = true;
            if (_disableInfluenceRoutine != null)
            {
                StopCoroutine(_disableInfluenceRoutine);
                _disableInfluenceRoutine = null;
            }

            if (_applyInfluenceRoutine == null)
            {
                _applyInfluenceRoutine = StartCoroutine(ApplyInfluenceRoutine());
            }

            if (ProCamera2D.OnExclusiveFocusStarted != null)
            {
                ProCamera2D.OnExclusiveFocusStarted();
            }
        }