Exemplo n.º 1
0
    protected virtual void Flood()
    {
        _currentFill = 1f;
        _isFlooded   = true;
        if (_waterPlane != null)
        {
            _waterPlane.SetFill(CurrentFillAmount);
        }
        if (Attachment != null)
        {
            Attachment.Flood();
            Attachment.Die();
        }

        ReturnBuilder();
    }