private void OnEnemyKill(IEnemy enemy) { if (IsTargetColor(enemy)) { OnProgressed?.Invoke(this); if (_current >= Target) { OnCompleted?.Invoke(this); } } }
/// @param amount /// The amount to progress /// public void AddProgress(int amount) { if (IsComplete() == false) { m_progress += amount; OnProgressed.SafeInvoke(); if (IsComplete() == true) { OnCompleted.SafeInvoke(); } } }
private void OnRequirementProgressed() { OnProgressed?.Invoke(this); }