Exemplo n.º 1
0
 private void OnLogEnter(Knife knife)
 {
     KnifeInLog?.Invoke();
     _knifeCount--;
     _player.IncreaseScore();
     KnifeCountChaged?.Invoke(_knifeCount);
     knife.RanIntoKnife -= OnRunningIntoKnife;
     knife.RanIntoKnife -= OnLogEnter;
     if (_knifeCount == 0)
     {
         AllKnifesInTarget?.Invoke();
         return;
     }
     ResetKnife();
 }
Exemplo n.º 2
0
 private void OnEnable()
 {
     KnifeCountChaged?.Invoke(_knifeCount);
 }