Ejemplo n.º 1
0
    public virtual void SetType(BlockType b)
    {
        bType = b;
        if (bType == BlockType.AIR || bType == BlockType.WATER)
        {
            isSolid = false;
        }
        else
        {
            isSolid = true;
        }

        health         = CrackType.NOCRACK;
        current_health = max_health;

        if (bType == BlockType.WATER)
        {
            parent = owner.fluid.gameObject;
        }
        else
        {
            parent = owner.chunk.gameObject;
        }
    }
Ejemplo n.º 2
0
 public virtual void Reset()
 {
     health         = CrackType.NOCRACK;
     current_health = max_health;
     owner.ReDraw();
 }