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

                if (IsComplete() == true)
                {
                    OnCompleted.SafeInvoke();
                }
            }
        }
예제 #3
0
 private void OnRequirementProgressed()
 {
     OnProgressed?.Invoke(this);
 }