private void SetCurrentSightLineAnimation(SightLine currentSightLine, bool isEnabled) { if (!string.IsNullOrEmpty(currentSightLine.AnimationFlag())) { _animator.SetBool(currentSightLine.AnimationFlag(), isEnabled); } }
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(); } }