예제 #1
0
    public bool TryEnablePiece(TankArmourPiece piece)
    {
        if (piece.TryEnablePiece())
        {
            if (piece.isTurretHolder)
            {
                tankManager.AddTurret(piece.turret);
            }

            OnPieceAdded(piece, (float)armourCount / armourPieces.Length);
            return(true);
        }
        return(false);
    }