BrickData.updateBlock C# (CSharp) Méthode

updateBlock() public méthode

public updateBlock ( int healthToSet ) : bool
healthToSet int
Résultat bool
    public bool updateBlock(int healthToSet)
    {
        currHealth = healthToSet;
        if(currHealth <= 0){
          isDead = true;
        }
        return isDead;
    }