Trigger a function when another function is called
<pre><code>public void ScoreFirstBall(int pinsKnockedDown) {
  if (IsStrike(Frame, pinsKnockedDown)) {
    Score = "X";
    ScoreMessage = "Good Job";
  } else if (IsGutterBall(pinsKnockedDown)) {
    Score = "0";
    ScoreMessage = "You'll do better next time";
  }
  PinsTotal += pinsKnockedDown;
}

public void ScoreSecondBall(int pinsKnockedDown) {
  PinsTotal += pinsKnockedDown;
}
</code></pre>

<p>Questions: </p>

<ol>
<li><p>In this case I want <code>PinsTotal += pinsKnockedDown</code> to be called every time <code>ScoreSecondBall(...)</code> or <code>ScoreFirstBall(...)</code> runs. So I want to put it in a function (it may expand to many lines in the future).</p></li>
<li><p>Is it efficient to do this? Because we have a thread to listen when functions are called.</p></li>
</ol>

<p>Thanks for reading my question, if it's not clear, just comment and I will fix it :)</p>
