BrickData.updateBlock C# (CSharp) Method

updateBlock() public method

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