public void UpdateTargetingCursor(bool canCastSpell) { if (!isPlacingSpell) { return; } AsvarduilCursorAnimation newCursorAnimation = canCastSpell ? AvailableCursor : UnavailableCursor; if (_currentCursor.Name == newCursorAnimation.Name) { return; } _currentCursor = newCursorAnimation; CurrentFrame = 0; }
public void SetCursorToDefault() { _currentCursor = DefaultCursor; CurrentFrame = 0; }
public void UpdateTargetingCursor(bool canCastSpell) { if(! isPlacingSpell) return; AsvarduilCursorAnimation newCursorAnimation = canCastSpell ? AvailableCursor : UnavailableCursor; if(_currentCursor.Name == newCursorAnimation.Name) return; _currentCursor = newCursorAnimation; CurrentFrame = 0; }