private addHealth ( int j ) : void | ||
j | int | position of the medkit in the medkits collection |
리턴 | void |
private void addHealth(int j)
{
myGame.player.health += myGame.difficultyConstants.INCREASED_HEALTH_BY_MEDKIT;
if (myGame.player.health > 100)
myGame.player.health = 100;
firstAidKits.RemoveAt(j);
}