예제 #1
0
 private void SetCurrentSightLineAnimation(SightLine currentSightLine, bool isEnabled)
 {
     if (!string.IsNullOrEmpty(currentSightLine.AnimationFlag()))
     {
         _animator.SetBool(currentSightLine.AnimationFlag(), isEnabled);
     }
 }
예제 #2
0
        private Controllers.SightLine GetNextSightLine()
        {
            switch (_currentSightLine)
            {
            case SightLine.BottomRight:
            {
                _currentSightLine = SightLine.BottomLeft;
                return(bottomLeftSightLine);
            }

            case SightLine.BottomLeft:
            {
                _currentSightLine = SightLine.TopLeft;
                return(topLeftSightLine);
            }

            case SightLine.TopLeft:
            {
                _currentSightLine = SightLine.TopRight;
                return(topRightSightLine);
            }

            case SightLine.TopRight:
            {
                _currentSightLine = SightLine.BottomRight;
                return(bottomRightSightLine);
            }

            default:
                throw new ArgumentOutOfRangeException();
            }
        }